function template_preprocess_cctags_term in cctags 7
Same name and namespace in other branches
- 6 cctags.module \template_preprocess_cctags_term()
File
- ./
cctags.module, line 620
Code
function template_preprocess_cctags_term(&$variables) {
$term = (object) $variables['term'];
$mode = $variables['mode'];
$t = '';
if (isset($term->count) && $term->count > 0) {
$t = l(check_plain($term->name), $term->path, array(
'attributes' => array(
'class' => array(
'cctags cctags-' . $mode . ' vid-' . $term->vid . ' level-' . $term->level . ' depth-' . $term->depth . ' count-' . $term->count . ' ccfilter tooltip',
),
'title' => $term->description,
'rel' => 'tag',
),
));
}
$variables['term'] = $t;
}