summaryrefslogtreecommitdiff
path: root/modules/help.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/help.module')
-rw-r--r--modules/help.module28
1 files changed, 16 insertions, 12 deletions
diff --git a/modules/help.module b/modules/help.module
index 1fb68e743..b3fe02ef4 100644
--- a/modules/help.module
+++ b/modules/help.module
@@ -9,22 +9,26 @@
/**
* Implementation of hook_menu().
*/
-function help_menu() {
+function help_menu($may_cache) {
$items = array();
- $items[] = array('path' => 'admin/help', 'title' => t('help'),
- 'callback' => 'help_main',
- 'access' => user_access('access administration pages'),
- 'weight' => 9);
- foreach (module_list() as $name) {
- if (module_hook($name, 'help')) {
- $items[] = array('path' => 'admin/help/' . $name,
- 'title' => t($name),
- 'callback' => 'help_page',
- 'type' => MENU_CALLBACK,
- 'access' => user_access('access administration pages'));
+ if ($may_cache) {
+ $items[] = array('path' => 'admin/help', 'title' => t('help'),
+ 'callback' => 'help_main',
+ 'access' => user_access('access administration pages'),
+ 'weight' => 9);
+
+ foreach (module_list() as $name) {
+ if (module_hook($name, 'help')) {
+ $items[] = array('path' => 'admin/help/' . $name,
+ 'title' => t($name),
+ 'callback' => 'help_page',
+ 'type' => MENU_CALLBACK,
+ 'access' => user_access('access administration pages'));
+ }
}
}
+
return $items;
}