diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-03-21 14:28:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-03-21 14:28:15 +0000 |
commit | 754f2ac26a2dbe81fcaa2886d4a8f5030b8e6cda (patch) | |
tree | c0300113f97cbc055fe177e75542e11c0c0ff400 /modules/blog/blog.module | |
parent | f43cd3bb3399bf13109945b5d259e5fe934a81f7 (diff) | |
download | brdo-754f2ac26a2dbe81fcaa2886d4a8f5030b8e6cda.tar.gz brdo-754f2ac26a2dbe81fcaa2886d4a8f5030b8e6cda.tar.bz2 |
- More profile module improvements:
+ Updated the _user() hook's "$type == 'view'" case to match the
"$type == 'edit'" case. That is, both have to return an associtive
array of the format array('category' => 'fields').
+ Updated the profile pages to group fields by category. Made possible
thanks to the above change.
+ Moved logic out of the theme_ functions.
Diffstat (limited to 'modules/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 9b18115d4..bd1c00fe7 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -38,7 +38,7 @@ function blog_access($op, $node) { function blog_user($type, &$edit, &$user) { if ($type == 'view' && user_access("maintain personal blog", $user)) { - return form_item(t("Blog"), l(t("view recent blog entries"), "blog/$user->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $user->name))))); + return array(t('History') => form_item(t("Blog"), l(t("view recent blog entries"), "blog/$user->uid", array("title" => t("Read %username's latest blog entries.", array("%username" => $user->name)))))); } } |