From 33651a4edff026910827ef39ec28cb9381c297b0 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 4 May 2004 01:44:30 +0000 Subject: #7468 - Added title="" attribute with term descriptions (if present) to taxonomy links. See http://drupal.org/node/view/7468 --- modules/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy.module') diff --git a/modules/taxonomy.module b/modules/taxonomy.module index a30605792..0d9050950 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -45,13 +45,13 @@ function taxonomy_link($type, $node = NULL) { if ($node->taxonomy) { foreach ($node->taxonomy as $tid) { $term = taxonomy_get_term($tid); - $links[] = l($term->name, "taxonomy/page/or/$term->tid"); + $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array ('title' => $term->description) : array()); } } else { $links = array(); foreach (taxonomy_node_get_terms($node->nid) as $term) { - $links[] = l($term->name, "taxonomy/page/or/$term->tid"); + $links[] = l($term->name, "taxonomy/page/or/$term->tid", $term->description ? array ('title' => $term->description) : array()); } } -- cgit v1.2.3