function views_handler_argument_numeric::options_form
Same name in other branches
- 6.x-3.x handlers/views_handler_argument_numeric.inc \views_handler_argument_numeric::options_form()
Overrides views_handler_argument::options_form
1 call to views_handler_argument_numeric::options_form()
- views_handler_argument_field_list::options_form in modules/
field/ views_handler_argument_field_list.inc - Build the options form.
1 method overrides views_handler_argument_numeric::options_form()
- views_handler_argument_field_list::options_form in modules/
field/ views_handler_argument_field_list.inc - Build the options form.
File
-
handlers/
views_handler_argument_numeric.inc, line 46
Class
- views_handler_argument_numeric
- Basic argument handler for arguments that are numeric.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Allow + for or, , for and.
$form['break_phrase'] = array(
'#type' => 'checkbox',
'#title' => t('Allow multiple values'),
'#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'),
'#default_value' => !empty($this->options['break_phrase']),
'#fieldset' => 'more',
);
$form['not'] = array(
'#type' => 'checkbox',
'#title' => t('Exclude'),
'#description' => t('If selected, the numbers entered for the filter will be excluded rather than limiting the view.'),
'#default_value' => !empty($this->options['not']),
'#fieldset' => 'more',
);
}