summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-06 11:30:12 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-06 11:30:12 +0000
commit026af5df34694c8ca5c3708f3fe23fd10ec160cb (patch)
tree3c557e61dd8b65bc31cd3538d499f08785c7d134 /modules/blog/blog.module
parenteabf7ab4ca423df42e53d11de30a814b39b03800 (diff)
downloadbrdo-026af5df34694c8ca5c3708f3fe23fd10ec160cb.tar.gz
brdo-026af5df34694c8ca5c3708f3fe23fd10ec160cb.tar.bz2
- Patch #310212 by justinrandell, catch, et all: killed in _user hook, as well as two small kittens.
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'),