diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-11-18 20:44:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-11-18 20:44:33 +0000 |
commit | fe9a6afa0875918f7cde61acb7ba766853ff1f84 (patch) | |
tree | 475f5c3bcb93e7ca6b03649a3b94cd8ccd4bf7f4 | |
parent | a0640e66b7e93170de767442af42ee04ff848972 (diff) | |
download | brdo-fe9a6afa0875918f7cde61acb7ba766853ff1f84.tar.gz brdo-fe9a6afa0875918f7cde61acb7ba766853ff1f84.tar.bz2 |
- Admin module clean-up. Patch by Kjartan. (The status function should be
a theme_ function really.)
-rw-r--r-- | modules/admin.module | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/modules/admin.module b/modules/admin.module index 4df79bc19..0cb34a60a 100644 --- a/modules/admin.module +++ b/modules/admin.module @@ -1,29 +1,21 @@ <?php // $Id$ -include_once "includes/common.inc"; - function status($message) { if ($message) { - return "<b>Status:</b> $message<hr />\n"; + return "<strong>Status:</strong> $message<hr />\n"; } } function admin_help($section) { - $output = ""; - switch ($section) { case "admin/system/modules#description": - $output .= t("Handles the administration pages."); - break; + return t("Handles the administration pages."); case "admin": - $output .= t("Welcome to the administration section. Below are the most recent system events."); - break; + return t("Welcome to the administration section. Below are the most recent system events."); case "admin/overview": - $output = t("This is a complete overview of the site administration page."); - break; + return t("This is a complete overview of the site administration page."); } - return $output; } function admin_link($type) { |