summaryrefslogtreecommitdiff
path: root/modules/help/help.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/help/help.module')
-rw-r--r--modules/help/help.module19
1 files changed, 12 insertions, 7 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index a29a58feb..6cfdce90c 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -2,13 +2,18 @@
// $Id$
/**
- * Implementation of hook_link().
+ * Implementation of hook_menu().
*/
-function help_link($type) {
- if ($type == 'system') {
- menu('admin/help/glossary', t('glossary'), user_access('access administration pages') ? 'help_glossary' : MENU_DENIED, 8);
- menu('admin/help', t('help'), user_access('access administration pages') ? 'help_page' : MENU_DENIED, 9);
- }
+function help_menu() {
+ $items = array();
+ $items[] = array('path' => 'admin/help/glossary', 'title' => t('glossary'),
+ 'callback' => 'help_glossary',
+ 'access' => user_access('access administration pages'));
+ $items[] = array('path' => 'admin/help', 'title' => t('help'),
+ 'callback' => 'help_page',
+ 'access' => user_access('access administration pages'),
+ 'weight' => 9);
+ return $items;
}
/**
@@ -41,7 +46,7 @@ function help_glossary() {
*/
function help_help($section) {
switch ($section) {
- case 'admin/system/modules#description':
+ case 'admin/modules#description':
$output = t('Manages displaying online help.');
break;
}