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

Overrides views_handler_filter::options_form().

Add an option to remove search scores from the query.

Overrides views_handler_filter::options_form

File

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

Class

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

Code

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

  $form['remove_score'] = array(
    '#type' => 'checkbox',
    '#title' => t('Remove search score'),
    '#description' => t('Check this box to remove the search score from the query. This can help reduce help reduce duplicate search results when using this filter.'),
    '#default_value' => $this->options['remove_score'],
  );
}