1 views_handler_filter_fields_compare.inc | views_handler_filter_fields_compare::options_form(&$form, &$form_state) |
Overrides views_handler_filter#options_form().
Overrides views_handler_filter::options_form
File
- core/
modules/ views/ handlers/ views_handler_filter_fields_compare.inc, line 63 - Definition of views_handler_filter_fields_compare.
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$field_options = $this->field_options();
$form['left_field'] = array(
'#type' => 'select',
'#title' => t('Left field'),
'#default_value' => $this->options['left_field'],
'#options' => $field_options,
'#weight' => -3,
);
$form['operator'] = array(
'#type' => 'select',
'#title' => t('Operator'),
'#default_value' => $this->options['operator'],
'#options' => $this->fields_operator_options(),
'#weight' => -2,
);
$form['right_field'] = array(
'#type' => 'select',
'#title' => t('Right field'),
'#default_value' => $this->options['right_field'],
'#options' => $field_options,
'#weight' => -1,
);
}