function theme_cctags_level in cctags 6
Same name and namespace in other branches
- 8 cctags.module \theme_cctags_level()
- 7 cctags.module \theme_cctags_level()
2 theme calls to theme_cctags_level()
- cctags_page in ./
cctags.page.inc - @file
- theme_cctags_block in ./
cctags.module
File
- ./
cctags.module, line 771
Code
function theme_cctags_level($terms, $amount = 0, $page = 0, $mode = 'mixed', $vocname = 0, $out = 'page') {
$output = '';
$start_term = $amount * $page;
$end_term = $start_term + $amount;
$cur_term = 0;
foreach ($terms as $voc => $tags) {
if ($out == 'page') {
if (!$vocname) {
unset($terms[$voc]['vocname']);
}
$output .= theme('cctags_vocname', $terms[$voc]['vocname'], $terms[$voc]['vid'], $terms[$voc]['terms']);
}
if (is_numeric($voc)) {
foreach ($tags as $term) {
if ($cur_term >= $start_term && $cur_term < $end_term || $amount == 0) {
$output .= theme('cctags_term', $term, $out);
}
$cur_term++;
}
}
}
return $output;
}