00001 <?php
00007 class views_handler_filter_equality extends views_handler_filter {
00008
00009 var $always_multiple = TRUE;
00010
00014 function operator_options() {
00015 return array(
00016 '=' => t('Is equal to'),
00017 '!=' => t('Is not equal to'),
00018 );
00019 }
00020
00024 function value_form(&$form, &$form_state) {
00025 $form['value'] = array(
00026 '#type' => 'textfield',
00027 '#title' => t('Value'),
00028 '#size' => 30,
00029 '#default_value' => $this->value,
00030 );
00031
00032 if (!empty($form_state['exposed'])) {
00033 $identifier = $this->options['expose']['identifier'];
00034 if (!isset($form_state['input'][$identifier])) {
00035 $form_state['input'][$identifier] = $this->value;
00036 }
00037 }
00038 }
00039 }