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/tracker.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/tracker.module')
-rw-r--r-- | modules/tracker.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/tracker.module b/modules/tracker.module index fbf587ff6..a700f13dc 100644 --- a/modules/tracker.module +++ b/modules/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; } } |