From 1b291a2917a1c18194c54fce8bf0fd895db98019 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 18 May 2006 14:58:57 +0000 Subject: - Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules --- modules/blog.module | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/blog.module') diff --git a/modules/blog.module b/modules/blog.module index d1246f31c..01c5fa557 100644 --- a/modules/blog.module +++ b/modules/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))) + ); } } -- cgit v1.2.3