1 views_handler_argument_numeric.inc views_handler_argument_numeric::options_form(&$form, &$form_state)

Build the options form.

Overrides views_handler_argument::options_form

File

core/modules/views/handlers/views_handler_argument_numeric.inc, line 35
Definition of views_handler_argument_numeric.

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