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.module6
1 files changed, 3 insertions, 3 deletions
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'),