drupal/modules/admin.module

41 lines
946 B
Plaintext
Raw Normal View History

2003-01-06 19:51:01 +00:00
<?php
// $Id$
function status($message) {
if ($message) {
return "<strong>Status:</strong> $message<hr />\n";
2003-01-06 19:51:01 +00:00
}
}
function admin_help($section) {
switch ($section) {
case "admin/system/modules#description":
return t("Handles the administration pages.");
case "admin":
return t("Welcome to the administration section. Below are the most recent system events.");
case "admin/overview":
return t("This is a complete overview of the site administration page.");
}
}
function admin_link($type) {
if ($type == "system" && user_access("access administration pages")) {
menu("admin", t("administer"), "admin_admin", 9);
}
}
function admin_admin() {
2003-01-06 19:51:01 +00:00
if (user_access("access administration pages")) {
print theme("header");
print watchdog_overview("actions");
print theme("footer");
}
else {
print theme("header");
print message_access();
print theme("footer");
2003-01-06 19:51:01 +00:00
}
}
?>