summaryrefslogtreecommitdiff
path: root/modules/locale/locale.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/locale/locale.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/locale/locale.module')
-rw-r--r--modules/locale/locale.module8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 588f860e0..f6e8851e2 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -87,6 +87,14 @@ function locale_link($type) {
}
}
+function locale_user($type, &$edit, &$user) {
+ global $languages;
+ if ($type == "edit_form" && count($languages) > 1) {
+ $output = form_select(t("Language"), "language", $user->language, $languages, t("Selecting a different language will change the language of the site."));
+ }
+ return $output;
+}
+
function locale_delete($lid) {
db_query("DELETE FROM {locales} WHERE lid = %d", $lid);
locale_refresh_cache();