function theme_community_tags in Community Tags 7
Same name and namespace in other branches
- 5 community_tags.module \theme_community_tags()
- 6.2 community_tags.module \theme_community_tags()
- 6 community_tags.module \theme_community_tags()
Theme function to display a list of community tags via tagadelic.
2 theme calls to theme_community_tags()
- _community_tags_display_handler_tagadelic in ./
community_tags.module - Display all tags using tagadelic. Only called if tagadelic module is enabled. See _community_tags_get_tag_result() for definitions of $type and the arguments.
- _community_tags_node_view in ./
community_tags.module - Community tags callback for node view.
File
- ./
community_tags.module, line 606 - Implements community tagging of nodes using a specific vocabulary for Drupal v7.x
Code
function theme_community_tags($variables) {
$tags = $variables['tags'];
return '<div class="cloud">' . (count($tags) ? theme('tagadelic_weighted', array(
'terms' => $tags,
)) : t('None')) . '</div>';
}