function views_handler_argument_numeric::options_form

Same name in other branches
  1. 7.x-3.x handlers/views_handler_argument_numeric.inc \views_handler_argument_numeric::options_form()

Overrides views_handler_argument::options_form

File

handlers/views_handler_argument_numeric.inc, line 23

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']),
    );
}