function theme_cctags_block in cctags 7
Same name and namespace in other branches
- 6 cctags.module \theme_cctags_block()
1 theme call to theme_cctags_block()
- cctags_block_view in ./
cctags.module - Implements hook_block_view().
File
- ./
cctags.module, line 641
Code
function theme_cctags_block($variables) {
$cctid = $variables['cctid'];
$amount = $variables['amount'];
$more_link = $variables['more_link'];
$extra_class = empty($variables['extra_class']) ? '' : ' ' . $variables['extra_class'];
$terms = cctags_get_level_tags($cctid, 'block');
$output = '';
if (count($terms)) {
$count = $terms['count'];
unset($terms['count']);
$output .= '<div class="cctags cctags-block wrapper' . $extra_class . '">';
$output .= theme('cctags_level', array(
'terms' => $terms,
'amount' => $amount,
'page' => 0,
'mode' => 'mixed',
'vocname' => 0,
'out' => 'block',
));
$output .= '</div>';
if ($more_link && $count > $amount) {
$output .= theme('cctags_more', array(
'cctid' => $cctid,
));
}
}
return $output;
}