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

Options form subform for exposed filter options.

Overrides views_handler_filter_in_operator::expose_form

See also

options_form()

File

core/modules/taxonomy/views/views_handler_filter_term_node_tid.inc, line 348
Definition of views_handler_filter_term_node_tid.

Class

views_handler_filter_term_node_tid
Filter by term id.

Code

function expose_form(&$form, &$form_state) {
  parent::expose_form($form, $form_state);
  if ($this->options['type'] != 'select') {
    unset($form['expose']['reduce']);
  }
  $form['error_message'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display error message'),
    '#default_value' => !empty($this->options['error_message']),
  );
}