diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
commit | 1b291a2917a1c18194c54fce8bf0fd895db98019 (patch) | |
tree | a46473123aeb5709f8cc6f07e685fc84df90bf06 /modules/blog | |
parent | be7bb9be9bb41c83795fa8d7fa119ce4025f2de0 (diff) | |
download | brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.gz brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.bz2 |
- Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/blog.module | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index d1246f31c..01c5fa557 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -249,7 +249,11 @@ function blog_link($type, $node = 0, $main = 0) { if ($type == 'node' && $node->type == 'blog') { if (arg(0) != 'blog' || arg(1) != $node->uid) { - $links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))); + $links['blog_usernames_blog'] = array( + '#title' => t("%username's blog", array('%username' => $node->name)), + '#href' => "blog/$node->uid", + '#attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name))) + ); } } |