Status: $message
\n";
}
}
function admin_help($section) {
$output = "";
switch ($section) {
case "admin/system/modules#description":
$output .= t("Handles the administration pages.");
break;
case "admin":
$output .= t("Welcome to the administration section. Below are the most recent system events.");
break;
case "admin/overview":
$output = t("This is a complete overview of the site administration page.");
break;
}
return $output;
}
function admin_link($type) {
if ($type == "system" && user_access("access administration pages")) {
menu("admin", t("administer"), "admin_admin", 9);
}
}
function admin_page() {
if (user_access("access administration pages")) {
$title = menu_get_active_title();
theme("header", $title);
$contents = "";
if ($help = menu_get_active_help()) {
$contents .= "$help
";
}
if (arg(1)) {
$contents .= menu_execute_active_handler();
}
else {
$contents .= watchdog_overview("actions");
}
$breadcrumb = menu_get_active_breadcrumb();
array_pop($breadcrumb);
theme("breadcrumb", $breadcrumb);
theme("box", $title, $contents);
theme("footer");
}
else {
theme("header", t("Access denied"));
theme("box", t("Access denied"), message_access());
theme("footer");
}
}
?>