public function views_handler_filter_term_node_tid::admin_summary in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/taxonomy/views_handler_filter_term_node_tid.inc \views_handler_filter_term_node_tid::admin_summary()
- 6.2 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 425 - Definition of views_handler_filter_term_node_tid.
Class
- views_handler_filter_term_node_tid
- Filter by term id.
Code
public 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 = taxonomy_term_load_multiple($this->value);
foreach ($result as $entity_term) {
$this->value_options[$entity_term->tid] = entity_label('taxonomy_term', $entity_term);
}
}
return parent::admin_summary();
}