diff options
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 639c3db20..5d511b40e 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -48,11 +48,12 @@ function blog_access($op, $node) { */ function blog_user($type, &$edit, &$user) { if ($type == 'view' && user_access('edit own blog', $user)) { - $items['blog'] = array('title' => t('Blog'), - 'value' => l(t('View recent blog entries'), "blog/$user->uid", array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name)))), - 'class' => 'blog', + $user->content['summary']['blog'] = array( + '#type' => 'user_profile_item', + '#title' => t('Blog'), + '#value' => l(t('View recent blog entries'), "blog/$user->uid", array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name)))), + '#attributes' => array('class' => 'blog'), ); - return array(t('History') => $items); } } |