function views_handler_argument_numeric::options_form
3.x views_handler_argument_numeric.inc | views_handler_argument_numeric::options_form(&$form, &$form_state) |
2.x views_handler_argument_numeric.inc | views_handler_argument_numeric::options_form(&$form, &$form_state) |
Provide a form for setting options.
Overrides views_handler_argument::options_form
File
- handlers/
views_handler_argument_numeric.inc, line 23 - Contains the numeric argument handler.
Class
- views_handler_argument_numeric
- Basic argument handler for arguments that are numeric. Incorporates break_phrase.
Code
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 terms per argument.'),
'#description' => t('If selected, users can enter multiple arguments in the form of 1+2+3 or 1,2,3.'),
'#default_value' => !empty($this->options['break_phrase']),
);
$form['not'] = array(
'#type' => 'checkbox',
'#title' => t('Exclude the argument'),
'#description' => t('If selected, the numbers entered in the argument will be excluded rather than limiting the view.'),
'#default_value' => !empty($this->options['not']),
);
}