You are here

function cctags_tags_lists in cctags 6

API function that returns the tags of a node in fancy titled lists

Parameters

$node. A node object.:

1 call to cctags_tags_lists()
cctags_block in ./cctags.module
implementation of hook_block

File

./cctags.module, line 179

Code

function cctags_tags_lists($node) {
  if (is_array($node->tags)) {
    $output = '';
    foreach ($node->tags as $vid => $terms) {
      $items = array();
      foreach ($terms as $term) {
        $items[] = l($term->name, $term->path, array(
          'attributes' => array(
            'title' => t('view all posts tagged with "@tag"', array(
              '@tag' => $term->name,
            )),
          ),
        ));
      }
      $output .= theme('item_list', $items);
    }
    return $output;
  }
}