Index: taxonomy.module =================================================================== RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v retrieving revision 1.152 diff -u -r1.152 taxonomy.module --- taxonomy.module 18 Oct 2004 17:46:19 -0000 1.152 +++ taxonomy.module 26 Oct 2004 20:38:03 -0000 @@ -1,5 +1,5 @@ taxonomy as $tid) { $term = taxonomy_get_term($tid); - $links[] = l($term->name, 'taxonomy/term/'. $term->tid); + $links[] = theme('term_link', $term); } } else { $links = array(); foreach (taxonomy_node_get_terms($node->nid) as $term) { - $links[] = l($term->name, 'taxonomy/term/'. $term->tid); + $links[] = theme('term_link', $term); } } + +/** + * Format taxonomy term item link. + * + * @param $term + * An object containing the term + * @param label + * The label for the field as displayed on the node form. + */ +function theme_term_link($term) { + return l($term->name, 'taxonomy/term/'. $term->tid); +} + +/** @} End of addtogroup themeable */ ?>