biblio_handler_filter_biblio_contributor_auth_type.inc in Bibliography Module 6.2
Views biblio contributor auth type handler for Drupal biblio module.
File
views/biblio_handler_filter_biblio_contributor_auth_type.incView source
<?php
/**
* @file
* Views biblio contributor auth type handler for Drupal biblio module.
*/
class biblio_handler_filter_biblio_contributor_auth_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 title, auth_type\n FROM {biblio_contributor_type_data}\n ORDER by auth_type");
$this->value_title = t('Author type');
$options = array();
while ($row = db_fetch_object($result)) {
$options[$row->auth_type] = $row->title;
}
$this->value_options = $options;
}
}
}
Classes
Name![]() |
Description |
---|---|
biblio_handler_filter_biblio_contributor_auth_type | @file Views biblio contributor auth type handler for Drupal biblio module. |