You are here

public function views_handler_filter_search::options_form in Views (for Drupal 7) 7.3

Provide the basic form which calls through to subforms.

If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler_filter::options_form

File

modules/search/views_handler_filter_search.inc, line 47
Definition of views_handler_filter_search.

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'],
  );
}