summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-30 21:48:32 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-30 21:48:32 +0000
commit392304da5f4a6f86d8ab8b5f91d38a698d1dcc88 (patch)
tree9f314e3b0d3545219e4b11ad91ba93414ace489f /modules/system/system.module
parent6baa7d7c218549f898366b60cc4257c010efee71 (diff)
downloadbrdo-392304da5f4a6f86d8ab8b5f91d38a698d1dcc88.tar.gz
brdo-392304da5f4a6f86d8ab8b5f91d38a698d1dcc88.tar.bz2
- 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.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module16
1 files changed, 16 insertions, 0 deletions
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 = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n";
+ if ($type == "edit_form" && count($themes = theme_list()) > 1) {
+ 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."));
+ }
+ 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;