You are here

function tagclouds_display_node_link_count in TagCloud 7

Display Single Tag with Style

1 call to tagclouds_display_node_link_count()
theme_tagclouds_weighted in ./tagclouds.module
Theme function that renders the HTML for the tags.

File

./tagclouds.module, line 474

Code

function tagclouds_display_node_link_count($name, $tid, $nid, $count, $description) {
  if ($term = taxonomy_term_load($tid) && ($node = node_load($nid))) {
    $uri = entity_uri('node', $node);
    $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";
  }
}