summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-03-21 14:28:15 +0000
committerDries Buytaert <dries@buytaert.net>2004-03-21 14:28:15 +0000
commit754f2ac26a2dbe81fcaa2886d4a8f5030b8e6cda (patch)
treec0300113f97cbc055fe177e75542e11c0c0ff400 /modules/system
parentf43cd3bb3399bf13109945b5d259e5fe934a81f7 (diff)
downloadbrdo-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.module3
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;
}