Index: modules/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system.module,v retrieving revision 1.190 diff -u -F^f -r1.190 system.module --- modules/system.module 11 Dec 2004 14:13:24 -0000 1.190 +++ modules/system.module 14 Jan 2005 00:54:30 -0000 @@ -13,6 +13,8 @@ function system_help($section) { global $base_url; switch ($section) { + case 'admin': + return t('

Welcome to the administration section. Below are the most recent system events.

'); case 'admin/settings': return t('General configuration options for your site. Set up the name of the site, e-mail address used in mail-outs, clean URL options, caching, etc.'); case 'admin/themes': @@ -69,6 +71,11 @@ function system_menu($may_cache) { $access = user_access('administer site configuration'); + $items[] = array('path' => 'admin', 'title' => t('administer'), + 'access' => user_access('access administration pages'), + 'callback' => 'admin_main_page', + 'weight' => 9); + // Themes: $items[] = array('path' => 'admin/themes', 'title' => t('themes'), 'callback' => 'system_themes', 'access' => $access); @@ -115,6 +122,13 @@ function system_test() { } /** + * Menu callback; provides the main page of the administration section. + */ +function admin_main_page() { + watchdog_overview('actions'); +} + +/** * Implementation of hook_user(). * * Allows users to individually set their theme and time zone. @@ -439,7 +453,7 @@ function system_module_listing() { ksort($files); - $required = array('admin', 'block', 'filter', 'system', 'user', 'watchdog'); + $required = array('block', 'filter', 'system', 'user', 'watchdog'); $throttle_required = array_merge($required, array('throttle')); $header = array(t('Name'), t('Description'), t('Enabled'));