drupal/modules/admin.module

42 lines
910 B
Plaintext

<?php
// $Id$
include_once "includes/common.inc";
function status($message) {
if ($message) {
return "<b>Status:</b> $message<hr />\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_admin() {
if (user_access("access administration pages")) {
return watchdog_overview("actions");
}
}
?>