summaryrefslogtreecommitdiff
path: root/modules/help/help.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-01-24 14:48:36 +0000
committerDries Buytaert <dries@buytaert.net>2007-01-24 14:48:36 +0000
commit03752e35a41992c3d61f2591980020c87af257e7 (patch)
treedd8d9f51a47716785083591d82ca873c201c1057 /modules/help/help.module
parentd407de4cec606623a5946805d2d42b580ccb116b (diff)
downloadbrdo-03752e35a41992c3d61f2591980020c87af257e7.tar.gz
brdo-03752e35a41992c3d61f2591980020c87af257e7.tar.bz2
- Patch #34755 by chx et al: faster menu system. HEAD is temporary broken and there is no upgrade path yet.
Diffstat (limited to 'modules/help/help.module')
-rw-r--r--modules/help/help.module30
1 files changed, 13 insertions, 17 deletions
diff --git a/modules/help/help.module b/modules/help/help.module
index 79fd232a1..399110041 100644
--- a/modules/help/help.module
+++ b/modules/help/help.module
@@ -9,24 +9,20 @@
/**
* Implementation of hook_menu().
*/
-function help_menu($may_cache) {
- $items = array();
+function help_menu() {
+ $items['admin/help'] = array(
+ 'title' => t('Help'),
+ 'page callback' => 'help_main',
+ 'access arguments' => array('access administration pages'),
+ 'weight' => 9,
+ );
- if ($may_cache) {
- $admin_access = user_access('access administration pages');
-
- $items[] = array('path' => 'admin/help', 'title' => t('Help'),
- 'callback' => 'help_main',
- 'access' => $admin_access,
- 'weight' => 9);
-
- foreach (module_implements('help', TRUE) as $module) {
- $items[] = array('path' => 'admin/help/' . $module,
- 'title' => t($module),
- 'callback' => 'help_page',
- 'type' => MENU_CALLBACK,
- 'access' => $admin_access);
- }
+ foreach (module_implements('help', TRUE) as $module) {
+ $items['admin/help/'. $module] = array(
+ 'title' => t($module),
+ 'page callback' => 'help_page',
+ 'type' => MENU_CALLBACK,
+ );
}
return $items;