diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-26 13:43:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-26 13:43:04 +0000 |
commit | d958fad0d685b5a50c6e0caab9bc42b403a243f6 (patch) | |
tree | 3fc0d6b668075bc14cc99630c931d6a390efc384 /modules/blog/blog.module | |
parent | 8e47cc95c5fb234df93b6397ac178f7930cfb625 (diff) | |
download | brdo-d958fad0d685b5a50c6e0caab9bc42b403a243f6.tar.gz brdo-d958fad0d685b5a50c6e0caab9bc42b403a243f6.tar.bz2 |
- Patch #40200 by Ax, Drewish, Zen et al: user_view() isn't merging view items correctly + CSS cleanup + form handling cleanup.
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 b8a2c9204..d561c6a9a 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -42,11 +42,11 @@ function blog_access($op, $node) { */ function blog_user($type, &$edit, &$user) { if ($type == 'view' && user_access('edit own blog', $user)) { - $form['blog'] = array( - '#type' => '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)))) + $items[] = 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', ); - return array(t('History') => $form); + return array(t('History') => $items); } } |