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