function tagadelic_page_chunk in Tagadelic 7
Same name and namespace in other branches
- 5 tagadelic.module \tagadelic_page_chunk()
- 6 tagadelic.module \tagadelic_page_chunk()
Menu callback renders a tagadelic page.
1 string reference to 'tagadelic_page_chunk'
- tagadelic_menu in ./
tagadelic.module - Implements hook_menu().
File
- ./
tagadelic.module, line 105
Code
function tagadelic_page_chunk($vocs) {
if ($vocs == NULL) {
foreach (taxonomy_get_vocabularies(NULL) as $vocabulary) {
$vocs[] = $vocabulary->vid;
}
}
$tags = tagadelic_get_weighted_tags($vocs, variable_get('tagadelic_levels', 6), variable_get('tagadelic_page_amount', '60'));
$tags = tagadelic_sort_tags($tags);
$output = theme('tagadelic_weighted', array(
'terms' => $tags,
));
if (!$output) {
return drupal_not_found();
}
$output = "<div class=\"wrapper tagadelic\">{$output}</div>";
return $output;
}