diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-07 16:18:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-07 16:18:46 +0000 |
commit | 5a8129e0fbf762c9dc6891d574dac386e959c262 (patch) | |
tree | 85a91e174d293a75656f8c1f5159d729c2cf6fc3 /modules/system/system.module | |
parent | 8c909397d7af99b6898255a93d13a03d0eafb2aa (diff) | |
download | brdo-5a8129e0fbf762c9dc6891d574dac386e959c262.tar.gz brdo-5a8129e0fbf762c9dc6891d574dac386e959c262.tar.bz2 |
- First batch of profile module improvements:
+ Tidied up the profile configuration page: grouped form elements.
+ Tidied up the block configuration settings: removed hard-coded
table.
+ Changed the profile API to return the preferred group name, and
changed the user module to group settings. Modules implementing
the _user hook will need to be udpated.
+ Removed register_form and register_validate for now.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index bdef196cd..ea5e703b8 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -83,17 +83,18 @@ function system_user($type, &$edit, $user) { foreach ($themes as $key => $value) { $options .= "<option value=\"$key\"". (($edit["theme"] == $key) ? " selected=\"selected\"" : "") .">$key - $value->description</option>\n"; } - $output .= form_item(t("Theme"), "<select name=\"edit[theme]\">$options</select>", t("Selecting a different theme will change the look and feel of the site.")); + $data[t('Theme settings')] = form_item(t("Theme"), "<select name=\"edit[theme]\">$options</select>", t("Selecting a different theme will change the look and feel of the site.")); } + $zonelist = array(-11, -10, -9.5, -9, -8, -7, -6, -5, -4, -3.5, -3, -2, -1, 0, 1, 2, 3, 3.5, 4, 5, 5.5, 5.75, 6, 6.5, 7, 8, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.75, 13, 14); foreach ($zonelist as $offset) { $zone = $offset * 3600; $zones["$zone"] = date(variable_get("date_format_long", "l, F dS, Y - g:ia"), time() - date("Z") + $zone) . sprintf(" (GMT %s%02d:%02d)\n", ($offset >= 0) ? "+" : "-", floor(abs($offset)), (abs($offset) * 60) % 60); } - $output .= 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.")); + $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 $output; + return $data; } function system_view_general() { |