You are here

function views_handler_filter_term_node_tid::admin_summary in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 modules/taxonomy/views_handler_filter_term_node_tid.inc \views_handler_filter_term_node_tid::admin_summary()
  2. 7.3 modules/taxonomy/views_handler_filter_term_node_tid.inc \views_handler_filter_term_node_tid::admin_summary()

Display the filter on the administrative summary

Overrides views_handler_filter_in_operator::admin_summary

File

modules/taxonomy/views_handler_filter_term_node_tid.inc, line 309

Class

views_handler_filter_term_node_tid
Filter by term id.

Code

function admin_summary() {

  // set up $this->value_options for the parent summary
  $this->value_options = array();
  if ($this->value) {
    $result = db_query("SELECT * FROM {term_data} td WHERE td.tid IN (" . implode(', ', $this->value) . ")");
    while ($term = db_fetch_object($result)) {
      $this->value_options[$term->tid] = $term->name;
    }
  }
  return parent::admin_summary();
}