diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-14 15:21:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-14 15:21:39 +0000 |
commit | d14bc428c695e9d8e6a17c9e7cb7f985b733992e (patch) | |
tree | 1f1c950c246d82dd73a0cb7c7761410a780a4506 /modules/system/system.module | |
parent | a6e7e9c104f718a98c92770a1d606b3531b54e3d (diff) | |
download | brdo-d14bc428c695e9d8e6a17c9e7cb7f985b733992e.tar.gz brdo-d14bc428c695e9d8e6a17c9e7cb7f985b733992e.tar.bz2 |
- Patch #15570 by Drumm: integrated the admin and system module. Renamed the callback as per Goba's suggestion.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module index c2a7ac769..d622ccc3f 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -13,6 +13,8 @@ function system_help($section) { global $base_url; switch ($section) { + case 'admin': + return t('<p>Welcome to the administration section. Below are the most recent system events.</p>'); 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' => 'system_admin_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 system_admin_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')); |