You are here

public function biblio_handler_filter_biblio_keyword_word::extra_options_form in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 views/biblio_handler_filter_biblio_keyword_word.inc \biblio_handler_filter_biblio_keyword_word::extra_options_form()

Provide a form for setting options.

Overrides views_handler::extra_options_form

File

views/biblio_handler_filter_biblio_keyword_word.inc, line 42

Class

biblio_handler_filter_biblio_keyword_word

Code

public function extra_options_form(&$form, &$form_state) {
  if ($this->options['limit']) {

    // We only do this when the form is displayed so this query doesn't run
    // unnecessarily just when the object is constructed.
    $form['type'] = array(
      '#type' => 'radios',
      '#title' => t('Selection type'),
      '#options' => array(
        'select' => t('Dropdown'),
        'textfield' => t('Autocomplete'),
      ),
      '#default_value' => $this->options['type'],
    );
  }
}