function theme_taxonomy_list_term_block in Taxonomy List 7
Same name and namespace in other branches
- 5.2 taxonomy_list.module \theme_taxonomy_list_term_block()
- 6.2 taxonomy_list.module \theme_taxonomy_list_term_block()
Theme the term for a block.
1 theme call to theme_taxonomy_list_term_block()
- theme_taxonomy_list_block in ./
taxonomy_list.module - Theme tree for a block.
File
- ./
taxonomy_list.module, line 926 - List all terms in a vocabulary.
Code
function theme_taxonomy_list_term_block($variables) {
// drupal_set_message(__FUNCTION__);
$term = $variables['term'];
$path = taxonomy_term_uri($term);
$output = '<div class="taxonomy-list-item taxonomy-list-term-' . $term->tid . '">' . str_repeat("–", $term->depth) . ' ' . $term->image . l($term->name, $path['path']) . $term->desc . '</div>';
return $output;
}