You are here

function theme_taxonomy_image_display in Taxonomy Image 5

Same name and namespace in other branches
  1. 6 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 44
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', 1) ? $term->name : NULL;
  return l($image, 'taxonomy/term/' . $term->tid, array(
    'class' => 'taxonomy_image_links',
  ), NULL, NULL, FALSE, TRUE) . $name;
}