You are here

function theme_cctags_block in cctags 6

Same name and namespace in other branches
  1. 7 cctags.module \theme_cctags_block()
1 theme call to theme_cctags_block()
cctags_block in ./cctags.module
implementation of hook_block

File

./cctags.module, line 844

Code

function theme_cctags_block($cctid, $amount, $more_link) {
  $terms = cctags_get_level_tags($cctid, 'block');
  $count = $terms['count'];
  unset($terms['count']);
  $output .= '<div class="cctags cctags-block wrapper">';
  $output .= theme('cctags_level', $terms, $amount, 0, 'mixed', 0, 'block');
  $output .= '</div>';
  if ($more_link && $count > $amount) {
    $output .= theme('cctags_more', $cctid);
  }
  return $output;
}