From 42e2eb0d2a4758279398adab71f3c70355da6a0f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 8 Nov 2005 15:17:34 +0000 Subject: - Patch #35178 by Robert Douglas: add title attribute to taxonomy links - use term description as text. --- modules/taxonomy/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 50ca304a4..931b4ceca 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -30,12 +30,12 @@ function taxonomy_link($type, $node = NULL) { if (array_key_exists('taxonomy', $node)) { foreach ($node->taxonomy as $tid) { $term = taxonomy_get_term($tid); - $links[] = l($term->name, taxonomy_term_path($term)); + $links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description)); } } else { foreach (taxonomy_node_get_terms($node->nid) as $term) { - $links[] = l($term->name, taxonomy_term_path($term)); + $links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description)); } } return $links; -- cgit v1.2.3