You are here

function theme_taxonomy_image_display in Taxonomy Image 6

Same name and namespace in other branches
  1. 5 contributed/taxonomy_image_node_display/taxonomy_image_node_display.module \theme_taxonomy_image_display()
1 theme call to theme_taxonomy_image_display()
taxonomy_image_node_display_nodeapi in contributed/taxonomy_image_node_display/taxonomy_image_node_display.module
Implementation of hook_nodeapi().

File

contributed/taxonomy_image_node_display/taxonomy_image_node_display.module, line 151
Display taxonomy images in nodes where and when you want them.

Code

function theme_taxonomy_image_display($image, $term) {
  $name = variable_get('taxonomy_image_node_show_name', TRUE) ? taxonomy_image_tt("taxonomy:term:{$term->tid}:name", $term->name) : NULL;
  return l($image, 'taxonomy/term/' . $term->tid, array(
    'html' => TRUE,
    'attributes' => array(
      'class' => 'taxonomy-image-links',
    ),
  )) . $name;
}