function views_handler_filter_search::options_form
Overrides views_handler_filter::options_form
File
-
modules/
search/ views_handler_filter_search.inc, line 47
Class
- views_handler_filter_search
- Field handler to provide simple renderer that allows linking to a node.
Code
public function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Add an option to remove search scores from the query.
$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 duplicate search results when using this filter.'),
'#default_value' => $this->options['remove_score'],
);
}