1 views_handler_filter_in_operator.inc views_handler_filter_in_operator::expose_form(&$form, &$form_state)

Options form subform for exposed filter options.

Overrides views_handler_filter::expose_form

See also

options_form()

File

core/modules/views/handlers/views_handler_filter_in_operator.inc, line 75
Definition of views_handler_filter_in_operator.

Class

views_handler_filter_in_operator
Simple filter to handle matching of multiple options selectable via checkboxes

Code

function expose_form(&$form, &$form_state) {
  parent::expose_form($form, $form_state);
  $form['expose']['reduce'] = array(
    '#type' => 'checkbox',
    '#title' => t('Limit list to selected items'),
    '#description' => t('If checked, the only items presented to the user will be the ones selected here.'),
    '#default_value' => !empty($this->options['expose']['reduce']), // safety
  );
}