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