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/system | |
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/system')
-rw-r--r-- | modules/system/system.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index ae588c7dd..1c5e7b95f 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -95,6 +95,9 @@ function system_user($type, $edit, &$user) { $data[t('Locale settings')] = form_select(t("Time zone"), "timezone", $edit["timezone"], $zones, t("Select what time you currently have and your time zone settings will be set appropriate.")); return $data; } + else if ($type == 'view') { + // do nothing + } else { return $edit; } |