public function contextual_range_filter_handler_argument_numeric_range::options_form in Views Contextual Range Filter 7
Create the options form.
Overrides views_handler_argument_numeric::options_form
File
- views/
contextual_range_filter_handler_argument_numeric_range.inc, line 25 - Definition of contextual_filter_range_handler_argument_numeric_range.
Class
- contextual_range_filter_handler_argument_numeric_range
- Argument handler for arguments that are numeric or numeric ranges.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['description']['#markup'] = t('Contextual range filter values are taken from the URL.');
$form['more']['#collapsed'] = FALSE;
$form['break_phrase']['#title'] = t('Allow multiple numeric ranges');
$form['break_phrase']['#description'] = t('If selected, multiple ranges may be specified by stringing them together with plus signs.<br/>Example: <strong>29--29.95+100--250</strong>');
$form['not'] = array(
'#type' => 'checkbox',
'#title' => t('Exclude'),
'#description' => t('Negate the range. If selected, output matching the specified numeric range(s) will be excluded, rather than included.'),
'#default_value' => !empty($this->options['not']),
'#fieldset' => 'more',
);
}