summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r--modules/blog/blog.module14
1 files changed, 7 insertions, 7 deletions
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;
}
/**