1 views_handler_filter_search.inc views_handler_filter_search::operator_form(&$form, &$form_state)

Provide simple equality operator

Overrides views_handler_filter::operator_form

File

core/modules/search/views/views_handler_filter_search.inc, line 57
Contains a search filter handler.

Class

views_handler_filter_search
Field handler to provide simple renderer that allows linking to a node.

Code

function operator_form(&$form, &$form_state) {
  $form['operator'] = array(
    '#type' => 'radios',
    '#title' => t('On empty input'),
    '#default_value' => $this->operator,
    '#options' => array(
      'optional' => t('Show All'),
      'required' => t('Show None'),
    ),
  );
}