From 18d22419f3da39ca4bf92f46d605a25957f311be Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 16 Dec 2008 22:05:51 +0000 Subject: - Patch #339929 by Moshe et al: move node links into ->content. --- modules/blog/blog.module | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 4e22962e6..e9b036c13 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -94,22 +94,22 @@ function blog_view($node, $teaser, $page) { } /** - * Implementation of hook_link(). + * Implementation of hook_nodeapi_view. */ -function blog_link($type, $node = NULL, $teaser = FALSE) { - $links = array(); - - if ($type == 'node' && $node->type == 'blog') { +function blog_nodeapi_view($node, $teaser = FALSE) { + if ($node->type == 'blog') { if (arg(0) != 'blog' || arg(1) != $node->uid) { $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))), ); + $node->content['links']['blog'] = array( + '#type' => 'node_links', + '#value' => $links, + ); } } - - return $links; } /** -- cgit v1.2.3