You are here

public function SearchApiViewsHandlerArgument::options_form in Search API 7

Build the options form.

Overrides views_handler_argument::options_form

2 calls to SearchApiViewsHandlerArgument::options_form()
SearchApiViewsHandlerArgumentFulltext::options_form in contrib/search_api_views/includes/handler_argument_fulltext.inc
Extend the options form a bit.
SearchApiViewsHandlerArgumentMoreLikeThis::options_form in contrib/search_api_views/includes/handler_argument_more_like_this.inc
Extend the options form a bit.
2 methods override SearchApiViewsHandlerArgument::options_form()
SearchApiViewsHandlerArgumentFulltext::options_form in contrib/search_api_views/includes/handler_argument_fulltext.inc
Extend the options form a bit.
SearchApiViewsHandlerArgumentMoreLikeThis::options_form in contrib/search_api_views/includes/handler_argument_more_like_this.inc
Extend the options form a bit.

File

contrib/search_api_views/includes/handler_argument.inc, line 88
Contains SearchApiViewsHandlerArgument.

Class

SearchApiViewsHandlerArgument
Views argument handler class for handling all non-fulltext types.

Code

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

  // Allow passing multiple values.
  $form['break_phrase'] = array(
    '#type' => 'checkbox',
    '#title' => t('Allow multiple values'),
    '#description' => t('If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND).'),
    '#default_value' => $this->options['break_phrase'],
    '#fieldset' => 'more',
  );
  $form['not'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude'),
    '#description' => t('If selected, the numbers entered for the filter will be excluded rather than limiting the view.'),
    '#default_value' => !empty($this->options['not']),
    '#fieldset' => 'more',
  );
}