public function range_handler_argument_numeric_range::options_form in Range 7
Build the options form.
Overrides views_handler_argument::options_form
File
- views/
range_handler_argument_numeric_range.inc, line 28 - Contains argument handler for numeric range arguments with views.
Class
- range_handler_argument_numeric_range
- Argument handler for limiting a view to entities which lies within a range.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['operator'] = array(
'#type' => 'radios',
'#title' => t('Operator'),
'#options' => array(
'within' => t('Range contains'),
'not within' => t('Range does not contain'),
),
'#default_value' => $this->options['operator'],
'#fieldset' => 'more',
);
$form['include_endpoints'] = array(
'#type' => 'checkbox',
'#title' => t('Include endpoints'),
'#default_value' => !empty($this->options['include_endpoints']),
'#description' => t('Whether or not include endpoints into the query.'),
'#fieldset' => 'more',
);
}