function tagclouds_display_term_link_count in TagCloud 7
1 call to tagclouds_display_term_link_count()
- theme_tagclouds_weighted in ./
tagclouds.module - Theme function that renders the HTML for the tags.
File
- ./
tagclouds.module, line 483
Code
function tagclouds_display_term_link_count($name, $tid, $count, $description) {
if ($term = taxonomy_term_load($tid)) {
$uri = entity_uri('taxonomy_term', $term);
$uri['options']['attributes']['class'][] = 'tagclouds';
$uri['options']['attributes']['title'] = decode_entities($description);
return "<span class='tagclouds-term'>" . l($name, $uri['path'], $uri['options']) . " (" . $count . ")" . "</span>\n";
}
}