summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-08 15:17:34 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-08 15:17:34 +0000
commit42e2eb0d2a4758279398adab71f3c70355da6a0f (patch)
tree516fa3a2be59eb1c4bcfacd1072a9d9e9c9cc7d6 /modules/taxonomy
parentea8cfd18a5628ede50617ef628244d7adf23e17b (diff)
downloadbrdo-42e2eb0d2a4758279398adab71f3c70355da6a0f.tar.gz
brdo-42e2eb0d2a4758279398adab71f3c70355da6a0f.tar.bz2
- Patch #35178 by Robert Douglas: add title attribute to taxonomy links - use term description as text.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module4
1 files changed, 2 insertions, 2 deletions
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;