summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-09-08 18:53:09 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-09-08 18:53:09 +0000
commit8f868e2fd9cc99e2f72422fd51aec4f559b33796 (patch)
treed4f05235ce67929549370550eefca5cc6918d103
parentbd650f9f8e0e6d4b9c9791d4f5210f4470a14540 (diff)
downloadbrdo-8f868e2fd9cc99e2f72422fd51aec4f559b33796.tar.gz
brdo-8f868e2fd9cc99e2f72422fd51aec4f559b33796.tar.bz2
- adding "Default theme" option to user_admin_edit()
-rw-r--r--modules/user.module3
-rw-r--r--modules/user/user.module3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index 8a1f58dc8..4827c8a21 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1422,8 +1422,9 @@ function user_admin_edit($edit = array()) {
}
}
+ $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n";
foreach (theme_list() as $key => $value) {
- $options .= "$value[type]<option value=\"$key\"". (($account->theme == $key) ? " selected=\"selected\"" : "") .">$key - $value->description</option>\n";
+ $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."));
for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date("l, F dS, Y - h:i A", time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")";
diff --git a/modules/user/user.module b/modules/user/user.module
index 8a1f58dc8..4827c8a21 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1422,8 +1422,9 @@ function user_admin_edit($edit = array()) {
}
}
+ $options = "<option value=\"\"". (("" == $key) ? " selected=\"selected\"" : "") .">". t("Default theme") ."</option>\n";
foreach (theme_list() as $key => $value) {
- $options .= "$value[type]<option value=\"$key\"". (($account->theme == $key) ? " selected=\"selected\"" : "") .">$key - $value->description</option>\n";
+ $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."));
for ($zone = -43200; $zone <= 46800; $zone += 3600) $zones[$zone] = date("l, F dS, Y - h:i A", time() - date("Z") + $zone) ." (GMT ". $zone / 3600 .")";