diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-11-08 15:17:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-11-08 15:17:34 +0000 |
commit | 42e2eb0d2a4758279398adab71f3c70355da6a0f (patch) | |
tree | 516fa3a2be59eb1c4bcfacd1072a9d9e9c9cc7d6 /modules/taxonomy | |
parent | ea8cfd18a5628ede50617ef628244d7adf23e17b (diff) | |
download | brdo-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.module | 4 |
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; |