summaryrefslogtreecommitdiff
path: root/modules/system.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-02-17 22:33:31 +0000
committerDries Buytaert <dries@buytaert.net>2003-02-17 22:33:31 +0000
commit52314ddc321a3895b4ea70afc43968c87aebf01e (patch)
tree4339567d47801790a322532c5537bdd03d1d685f /modules/system.module
parent465a5987702668321d2a1bde11ac6fa59e62f7d6 (diff)
downloadbrdo-52314ddc321a3895b4ea70afc43968c87aebf01e.tar.gz
brdo-52314ddc321a3895b4ea70afc43968c87aebf01e.tar.bz2
- Theme options patch. See mailing list.
Diffstat (limited to 'modules/system.module')
-rw-r--r--modules/system.module16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/system.module b/modules/system.module
index eac2ef928..5dc00dbfc 100644
--- a/modules/system.module
+++ b/modules/system.module
@@ -38,7 +38,7 @@ function system_link($type) {
menu_add("module selector", url("admin/system/modules/selector"), "Module selector.", NULL, "site configuration", 1);
menu_add("module settings", url("admin/system/modules/settings"), "Site settings.", NULL, "site configuration", 2);
menu_add("theme selector", url("admin/system/themes/selector"), "Theme selector.", NULL, "site configuration", 3);
- // menu_add("theme settings", url("admin/system/themes/settings"), "Theme selector.", NULL, "site configuration", 4);
+ menu_add("theme settings", url("admin/system/themes/settings"), "Theme selector.", NULL, "site configuration", 4);
menu_add("content filters", url("admin/system/filters"), "Content filters.", NULL, "site configuration", 5);
menu_add("help", url("admin/system/help"), "Help.", NULL, "site configuration", 9);
}
@@ -49,12 +49,12 @@ function system_view_modules() {
// general settings:
$output .= "<h3>" . t("General settings") . "</h3>\n";
- $output .= form_textfield(t("Name"), "site_name", variable_get("site_name", "drupal"), 55, 55, t("The name of this website."));
- $output .= form_textfield(t("E-mail address"), "site_mail", variable_get("site_mail", ini_get("sendmail_from")), 55, 128, t("A valid e-mail address for this website, used by the auto-mailer during registration, new password requests, notifications, etc."));
- $output .= form_textfield(t("Slogan"), "site_slogan", variable_get("site_slogan", ""), 55, 128, t("The slogan of this website. Some themes display a slogan when available."));
- $output .= form_textarea(t("Mission"), "site_mission", variable_get("site_mission", ""), 55, 5, t("Your site's mission statement or focus."));
- $output .= form_textarea(t("Footer message"), "site_footer", variable_get("site_footer", ""), 55, 5, t("This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages."));
- $output .= form_textfield(t("Anonymous user"), "anonymous", variable_get("anonymous", "Anonymous"), 55, 55, t("The name used to indicate anonymous users."));
+ $output .= form_textfield(t("Name"), "site_name", variable_get("site_name", "drupal"), 70, 70, t("The name of this website."));
+ $output .= form_textfield(t("E-mail address"), "site_mail", variable_get("site_mail", ini_get("sendmail_from")), 70, 128, t("A valid e-mail address for this website, used by the auto-mailer during registration, new password requests, notifications, etc."));
+ $output .= form_textfield(t("Slogan"), "site_slogan", variable_get("site_slogan", ""), 70, 128, t("The slogan of this website. Some themes display a slogan when available."));
+ $output .= form_textarea(t("Mission"), "site_mission", variable_get("site_mission", ""), 70, 5, t("Your site's mission statement or focus."));
+ $output .= form_textarea(t("Footer message"), "site_footer", variable_get("site_footer", ""), 70, 5, t("This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages."));
+ $output .= form_textfield(t("Anonymous user"), "anonymous", variable_get("anonymous", "Anonymous"), 70, 70, t("The name used to indicate anonymous users."));
foreach (module_list() as $name) { if (module_hook($name, "page")) $pages[$name] = $name; }
$output .= form_select(t("Default front page"), "site_frontpage", variable_get("site_frontpage", "node"), $pages, t("The home page displays content from this module (usually node)."));
$output .= form_select(t("Clean URLs"), "clean_url", variable_get("clean_url", 0), array(t("Disabled"), t("Enabled")), t("Enable or disable clean URLs. If enabled, you'll need <code>ModRewrite</code> support. See also the <code>.htaccess</code> file in Drupal's top-level directory."));
@@ -124,7 +124,7 @@ function system_view_modules() {
function system_view_themes() {
foreach (theme_list() as $theme) {
include_once "$theme->filename";
- $function = $theme->name ."_options";
+ $function = $theme->name ."_settings";
if (function_exists($function)) {
$output .= "<h3><a name=\"$theme->name\">". ucfirst(t("$theme->name")) ." " . t("settings") . "</a></h3>". $function() ."<hr />\n";
}