From 392304da5f4a6f86d8ab8b5f91d38a698d1dcc88 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 30 Sep 2003 21:48:32 +0000 Subject: - Moved the locale settings from the user module to the locale module. Patch by Stefan. - Moved the theme settings from the user module to the system module and made the code more intelligent. Patch by Stefan. --- modules/system/system.module | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index cd25b0d79..ef465d1d7 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -84,6 +84,22 @@ function system_link($type) { } } +function system_user($type, &$edit, $user) { + $options = "\n"; + if ($type == "edit_form" && count($themes = theme_list()) > 1) { + foreach ($themes as $key => $value) { + $options .= "\n"; + } + $output .= form_item(t("Theme"), "", t("Selecting a different theme will change the look and feel of the site.")); + } + if ($type == "edit_form") { + for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date(variable_get("date_format_long", "l, F dS, Y - g:ia"), time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")"; + $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.")); + } + + return $output; +} + function system_view_general() { global $conf, $cmodes, $corder; -- cgit v1.2.3