summaryrefslogtreecommitdiff
path: root/modules/admin.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin.module')
-rw-r--r--modules/admin.module15
1 files changed, 9 insertions, 6 deletions
diff --git a/modules/admin.module b/modules/admin.module
index b4f5e9c27..3bb035246 100644
--- a/modules/admin.module
+++ b/modules/admin.module
@@ -6,7 +6,7 @@
*/
function admin_help($section) {
switch ($section) {
- case 'admin/system/modules#description':
+ case 'admin/modules#description':
return t('Handles the administration pages.');
case 'admin':
return t('Welcome to the administration section. Below are the most recent system events.');
@@ -14,12 +14,15 @@ function admin_help($section) {
}
/**
- * Implementation of hook_link().
+ * Implementation of hook_menu().
*/
-function admin_link($type) {
- if ($type == 'system') {
- menu('admin', t('administer'), user_access('access administration pages') ? 'admin_main_page' : MENU_DENIED, 9);
- }
+function admin_menu() {
+ $items = array();
+ $items[] = array('path' => 'admin', 'title' => t('administer'),
+ 'access' => user_access('access administration pages'),
+ 'callback' => 'admin_main_page',
+ 'weight' => 9);
+ return $items;
}
/**