You are here

class biblio_handler_filter_biblio_type in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type
  2. 7 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type
  3. 7.2 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type

@file Views biblio type handler for Drupal biblio module.

Hierarchy

Expanded class hierarchy of biblio_handler_filter_biblio_type

1 string reference to 'biblio_handler_filter_biblio_type'
biblio_views_data in views/biblio.views.inc
Implements hook_views_data().

File

views/biblio_handler_filter_biblio_type.inc, line 7
Views biblio type handler for Drupal biblio module.

View source
class biblio_handler_filter_biblio_type extends views_handler_filter_in_operator {
  function construct() {
    parent::construct();
    $this->definition['numeric'] = true;
  }
  function get_value_options() {
    if (!isset($this->value_options)) {
      $result = db_query("SELECT name, tid\n              FROM {biblio_types} t\n              WHERE t.tid > 0 AND t.visible=1\n              ORDER by name");
      $this->value_title = t('Publication type');
      $options = array();
      while ($row = db_fetch_object($result)) {
        $options[$row->tid] = $row->name;
      }
      $this->value_options = $options;
    }
  }

}

Members