1 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

core/modules/taxonomy/views/views_handler_filter_term_node_tid.inc, line 358
Definition of views_handler_filter_term_node_tid.

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) {
    $this->value = array_filter($this->value);
    $result = db_select('taxonomy_term_data', 'td')
      ->fields('td')
      ->condition('td.tid', $this->value)
      ->execute();
    foreach ($result as $term) {
      $this->value_options[$term->tid] = $term->name;
    }
  }
  return parent::admin_summary();
}