diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-02-11 20:01:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-02-11 20:01:17 +0000 |
commit | e90f3b883b0655ccba009f2fbef982696341a1a2 (patch) | |
tree | 0afa31bda8e395e9addfadae4eb62067392abe20 /modules/system/system.module | |
parent | 3d3a60740a63e8c803d0905b2727bb202e6de370 (diff) | |
download | brdo-e90f3b883b0655ccba009f2fbef982696341a1a2.tar.gz brdo-e90f3b883b0655ccba009f2fbef982696341a1a2.tar.bz2 |
- See http://lists.drupal.org/pipermail/drupal-devel/2003-February/021824.html.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index 27412d890..61a9d2d96 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -111,8 +111,8 @@ function system_view_modules() { $output .= "<hr />\n"; foreach (module_list() as $name) { - if (module_hook($name, "conf_options")) { - $output .= "<h3><a name=\"$name\">". ucfirst(t("$name")) ." " . t("settings") . "</a></h3>". module_invoke($name, "conf_options") ."<hr />\n"; + if (module_hook($name, "settings")) { + $output .= "<h3><a name=\"$name\">". ucfirst(t("$name")) ." " . t("settings") . "</a></h3>". module_invoke($name, "settings") ."<hr />\n"; } } @@ -120,9 +120,11 @@ function system_view_modules() { } function system_view_themes() { - foreach (theme_list() as $name) { - if (module_hook($name, "conf_options")) { - $output .= "<h3><a name=\"$name\">". ucfirst(t("$name")) ." " . t("settings") . "</a></h3>". module_invoke($name, "conf_options") ."<hr />\n"; + foreach (theme_list() as $theme) { + include_once "$theme->filename"; + $function = $theme->name ."_options"; + if (function_exists($function)) { + $output .= "<h3><a name=\"$theme->name\">". ucfirst(t("$theme->name")) ." " . t("settings") . "</a></h3>". $function() ."<hr />\n"; } } @@ -182,7 +184,7 @@ function system_view($type) { break; default: foreach (module_list() as $name) { - if (module_hook($name, "conf_options")) { + if (module_hook($name, "settings")) { $links[] = "<a href=\"#$name\">". t("$name") ."</a>"; } } |