You are here

function biblio_handler_filter_biblio_type::get_value_options 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::get_value_options()
  2. 7 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type::get_value_options()
  3. 7.2 views/biblio_handler_filter_biblio_type.inc \biblio_handler_filter_biblio_type::get_value_options()

File

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

Class

biblio_handler_filter_biblio_type
@file Views biblio type handler for Drupal biblio module.

Code

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;
  }
}