From 754f2ac26a2dbe81fcaa2886d4a8f5030b8e6cda Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 21 Mar 2004 14:28:15 +0000 Subject: - 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. --- modules/blog/blog.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/blog') 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)))))); } } -- cgit v1.2.3