You are here

function theme_tagadelic_weighted in Tagadelic 5

Same name and namespace in other branches
  1. 6 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
implementation of 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 302

Code

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