function views_node_taxonomy_filter_handler_filter_tid::admin_summary in Views Node Taxonomy Filter 6
Same name and namespace in other branches
- 7 views_node_taxonomy_filter_handler_filter_tid.inc \views_node_taxonomy_filter_handler_filter_tid::admin_summary()
Display the value of the Filter selection in the Views edit screens.
File
Class
Code
function admin_summary() {
$vocabularies = taxonomy_get_vocabularies();
if (is_array($this->value)) {
$vocab_name = '';
foreach ($this->value as $v) {
$vocab = $vocabularies[$v];
$vocab_name .= $vocab->name . ', ';
}
}
else {
$vocab = $vocabularies[$this->value];
$vocab_name = $vocab->name;
}
return t(" for Vocabulary: ") . $vocab_name;
}