summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-05-04 01:44:30 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-05-04 01:44:30 +0000
commit33651a4edff026910827ef39ec28cb9381c297b0 (patch)
tree60eca48367355c1d4c6596cb579443009932a86e /modules/taxonomy.module
parentaa3f05d8192f4f278c7290a2c43e59d069a69540 (diff)
downloadbrdo-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.module')
-rw-r--r--modules/taxonomy.module4
1 files changed, 2 insertions, 2 deletions
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());
}
}