function theme_taxonomy_list_vocabulary in Taxonomy List 5
Same name and namespace in other branches
- 5.2 taxonomy_list.module \theme_taxonomy_list_vocabulary()
- 6.2 taxonomy_list.module \theme_taxonomy_list_vocabulary()
- 6 taxonomy_list.module \theme_taxonomy_list_vocabulary()
- 7 taxonomy_list.module \theme_taxonomy_list_vocabulary()
Theme the vocabulary.
1 theme call to theme_taxonomy_list_vocabulary()
- taxonomy_list_show in ./
taxonomy_list.module - Show the category list
File
- ./
taxonomy_list.module, line 407 - List the category specified in the URL
Code
function theme_taxonomy_list_vocabulary($vocabulary, $types = FALSE, $title = TRUE) {
$output = '<div class="taxonomy-list-vocabulary">';
if ($title) {
$output .= '<div class="name">' . check_plain($vocabulary->name) . '</div>';
}
$output .= '<div class="description">' . decode_entities(check_markup($vocabulary->description)) . '</div>';
if ($types) {
// $list = array_intersect_key(node_get_types('names'), array_flip($vocabulary->nodes)); /* php 5.1 */
$list = array_flip(array_intersect(array_flip(node_get_types('names')), $vocabulary->nodes));
$output .= '<div class="node-types"><p>' . t('Used for content types') . ': ' . implode(', ', $list) . '</p></div>';
}
$output .= '</div>';
return $output;
}