You are here

public function biblio_handler_filter_biblio_keyword_word::value_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::value_form()

Provide a simple textfield for equality.

Overrides views_handler_filter_string::value_form

File

views/biblio_handler_filter_biblio_keyword_word.inc, line 59

Class

biblio_handler_filter_biblio_keyword_word

Code

public function value_form(&$form, &$form_state) {
  parent::value_form($form, $form_state);
  if ($this->options['type'] == 'textfield') {

    /*      $default = '';
          if ($this->value) {
          $result = db_query("SELECT * FROM {biblio_keyword} bk WHERE bk.kid IN (:kids)",
          array(':kids' => implode(', ', $this->value)));

          foreach ($result as $term) {
          if ($default) {
          $default .= ', ';
          }
          $default .= $term->word;
          }
          }

          $form['value'] = array(
          '#title' => t('Select keywords'),
          '#type' => 'textfield',
          '#default_value' => $default,
          );

          if ($this->options['limit']) {
          $form['value']['#autocomplete_path'] = 'biblio/autocomplete/biblio_keywords';
          }
           */
  }
  if (empty($form_state['exposed'])) {

    // Retain the helper option
    //     $this->helper->options_form($form, $form_state);.
  }
}