You are here

function theme_tagadelic_weighted in Tagadelic 6

Same name and namespace in other branches
  1. 5 tagadelic.module \theme_tagadelic_weighted()
  2. 7 tagadelic.module \theme_tagadelic_weighted()

Theme function that renders the HTML for the tags.

3 theme calls to theme_tagadelic_weighted()
tagadelic_block in ./tagadelic.module
Implements hook_block().
tagadelic_page_chunk in ./tagadelic.module
Menu callback renders a tagadelic page.
theme_tagadelic_list_box in ./tagadelic.module
Theme function that renders an entry in tagadelic/list/ views.

File

./tagadelic.module, line 392

Code

function theme_tagadelic_weighted($terms) {
  $output = '';
  foreach ($terms as $term) {
    $output .= l($term->name, taxonomy_term_path($term), array(
      'attributes' => array(
        'class' => "tagadelic level{$term->weight}",
        'rel' => 'tag',
        'title' => $term->description,
      ),
    )) . " \n";
  }
  return $output;
}