Status: $message
\n"; } } function admin_help($section) { $output = ""; switch ($section) { case 'admin/system/modules': $output .= "Handles the administration pages."; break; case 'admin': $output .= "Welcome to the administration section. Below are the most recent system events. To get started please choose an item in the left column. If there is an arrow it will expand into a submenu. To jump up a level use the link,bread crumbs, above this block of text. To return to the home page click on the site name, and to go to Drupal's home page click on Druplicon, the drop on to the right."; break; case 'admin': $output = "This is a complete overview of the site administration page."; break; } return t($output); } function admin_system($field){ $output = ""; if ($field == "description") { $output = admin_help("admin/system/modules"); } return $output; } function admin_link($type) { if ($type == "admin") { menu("admin", "Administration", NULL, admin_help("admin")); menu("admin/overview", "sitemap", "overview_callback", admin_help("admin/overview"), 8); } } function overview_callback() { return menu_map("admin"); } function admin_admin() { print menu_map(); } function admin_page() { global $base_url; if (user_access("access administration pages")) { ?> <?php echo t("%sitename administration pages", array("%sitename" => variable_get("site_name", "drupal"))); ?> > \"Druplicon"; print "
"; if ($path = menu_path()) { print "

$path

"; } if ($help = menu_help()) { print "$help"; } print "
"; if (arg(1)) { //print module_invoke(arg(1), "admin"); print menu_execute_action(); } else { print "

". t("System messages") ."

"; print watchdog_overview("actions"); } print "
"; /* ** Menu: ** We rebuild the admin menu once more because one might have ** enabled/disabled themes or modules, changed permissions, etc. */ menu_build("admin"); print "
"; echo "

". variable_get("site_name", "drupal") ."

"; print menu_tree("admin") ; print "
"; print theme_footer(); ?>