You are here

biblio_handler_filter_contributor.inc in Bibliography Module 6.2

Views filter handler for biblio contributors for Drupal biblio module.

File

views/biblio_handler_filter_contributor.inc
View source
<?php

/**
 * @file
 * Views filter handler for biblio contributors for Drupal biblio module.
 */
class biblio_handler_filter_contributor extends views_handler_filter_many_to_one {
  function get_value_options() {
    $result = db_query("SELECT lastname, firstname, initials, cid \n              FROM {biblio_contributor_data} cd\n                  ORDER by lastname, firstname");
    $this->value_options = array();
    while ($row = db_fetch_object($result)) {
      $this->value_options[$row->cid] = "{$row->lastname}, {$row->firstname} {$row->initials}";
    }
  }

}

Classes

Namesort descending Description
biblio_handler_filter_contributor @file Views filter handler for biblio contributors for Drupal biblio module.