diff options
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index afd7ccb12..af72d54f7 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -44,12 +44,12 @@ function blog_access($op, $node, $account) { /** * Implement hook_user_view(). */ -function blog_user_view(&$edit, &$user, $category) { - if (user_access('create blog content', $user)) { - $user->content['summary']['blog'] = array( +function blog_user_view($account) { + if (user_access('create blog content', $account)) { + $account->content['summary']['blog'] = array( '#type' => 'user_profile_item', '#title' => t('Blog'), - '#markup' => l(t('View recent blog entries'), "blog/$user->uid", array('attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $user->name))))), + '#markup' => l(t('View recent blog entries'), "blog/$account->uid", array('attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $account->name))))), '#attributes' => array('class' => 'blog'), ); } |