diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-05-04 01:44:30 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-05-04 01:44:30 +0000 |
commit | 33651a4edff026910827ef39ec28cb9381c297b0 (patch) | |
tree | 60eca48367355c1d4c6596cb579443009932a86e /modules/taxonomy/taxonomy.module | |
parent | aa3f05d8192f4f278c7290a2c43e59d069a69540 (diff) | |
download | brdo-33651a4edff026910827ef39ec28cb9381c297b0.tar.gz brdo-33651a4edff026910827ef39ec28cb9381c297b0.tar.bz2 |
#7468 - Added title="" attribute with term descriptions (if present) to taxonomy links.
See http://drupal.org/node/view/7468
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index a30605792..0d9050950 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/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()); } } |