You are here

public function similar_handler_filter_similarity::options_form in Similar Entries 7.2

Same name and namespace in other branches
  1. 6.2 views/similar_handler_filter_similarity.inc \similar_handler_filter_similarity::options_form()

Alters the settings form to make the value a select list instead of text.

Overrides views_handler_filter::options_form

File

views/similar_handler_filter_similarity.inc, line 47
Defines the score filter handler for Similar entries module.

Class

similar_handler_filter_similarity
Defines the score filter handler.

Code

public function options_form(&$form, &$form_state) {

  // The between/not between operators don't make sense for similarity score.
  parent::options_form($form, $form_state);
  unset($form['operator']['#options']['between'], $form['operator']['#options']['not between']);
}