From e28bbf67397166b7256150301a1c4e931ea8314b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 7 Feb 2004 16:59:34 +0000 Subject: - Batch two with profile module improvements: + Reworked the 'account administration' page. + Fixed bug in the 'edit account' page. + Removed some dead code from the system.module. --- modules/system.module | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/system.module') diff --git a/modules/system.module b/modules/system.module index ea5e703b8..cf1d72d5c 100644 --- a/modules/system.module +++ b/modules/system.module @@ -76,9 +76,9 @@ function system_link($type) { } } -function system_user($type, &$edit, $user) { +function system_user($type, $edit, &$user) { if ($type == "edit_form") { - $options = "\n"; + $options = "\n"; if (count($themes = list_themes()) > 1) { foreach ($themes as $key => $value) { $options .= "\n"; @@ -92,9 +92,11 @@ function system_user($type, &$edit, $user) { $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); } $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 { + return $edit; } - - return $data; } function system_view_general() { -- cgit v1.2.3