biblio_handler_filter_biblio_type.inc in Bibliography Module 6.2
Same filename and directory in other branches
Views biblio type handler for Drupal biblio module.
File
views/biblio_handler_filter_biblio_type.incView source
<?php
/**
* @file
* Views biblio type handler for Drupal biblio module.
*/
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;
}
}
}
Classes
Name![]() |
Description |
---|---|
biblio_handler_filter_biblio_type | @file Views biblio type handler for Drupal biblio module. |