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/tracker/tracker.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/tracker/tracker.module') diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index fbf587ff6..a700f13dc 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -76,7 +76,8 @@ function tracker_page() { function tracker_user($type, &$edit, &$user) { if ($type == 'view' && user_access("access content")) { - return form_item(t("Recent posts"), l(t("recent posts"), "tracker/$user->uid")); + return array(t('History') => form_item(t("Recent posts"), l(t("recent posts"), "tracker/$user->uid"))); + return $fields; } } -- cgit v1.2.3