From 026af5df34694c8ca5c3708f3fe23fd10ec160cb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Oct 2008 11:30:12 +0000 Subject: - Patch #310212 by justinrandell, catch, et all: killed in _user hook, as well as two small kittens. --- modules/blog/blog.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 1bd68a80e..c848b90ba 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -42,10 +42,10 @@ function blog_access($op, $node, $account) { } /** - * Implementation of hook_user(). + * Implementation of hook_user_view(). */ -function blog_user($type, &$edit, &$user) { - if ($type == 'view' && user_access('create blog content', $user)) { +function blog_user_view(&$edit, &$user, $category) { + if (user_access('create blog content', $user)) { $user->content['summary']['blog'] = array( '#type' => 'user_profile_item', '#title' => t('Blog'), -- cgit v1.2.3