You are here

public function views_handler_argument_numeric::options_form in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_argument_numeric.inc \views_handler_argument_numeric::options_form()
  2. 6.2 handlers/views_handler_argument_numeric.inc \views_handler_argument_numeric::options_form()

Build the 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 44
Definition of views_handler_argument_numeric.

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