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

Build the options form.

Overrides views_handler_argument::options_form


core/modules/views/handlers/views_handler_argument_many_to_one.inc, line 51
Definition of views_handler_argument_many_to_one.


An argument handler for use in fields that have a many to one relationship with the table(s) to the left. This adds a bunch of options that are reasonably common with this type of relationship. Definition terms:


function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);

  // allow + for or, , for and
  if (!empty($this->definition['numeric'])) {
    $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['add_table'] = array(
    '#type' => 'checkbox',
    '#title' => t('Allow multiple filter values to work together'),
    '#description' => t('If selected, multiple instances of this filter can work together, as though multiple values were supplied to the same filter. This setting is not compatible with the "Reduce duplicates" setting.'),
    '#default_value' => !empty($this->options['add_table']),
    '#fieldset' => 'more',

  $form['require_value'] = array(
    '#type' => 'checkbox',
    '#title' => t('Do not display items with no value in summary'),
    '#default_value' => !empty($this->options['require_value']),
    '#fieldset' => 'more',

  $this->helper->options_form($form, $form_state);