diff options
Diffstat (limited to 'modules/page.module')
-rw-r--r-- | modules/page.module | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/page.module b/modules/page.module index 6dc7c2441..a73da4679 100644 --- a/modules/page.module +++ b/modules/page.module @@ -87,10 +87,14 @@ function page_load($node) { /** * Implementation of hook_menu(). */ -function page_menu() { +function page_menu($may_cache) { $items = array(); - $items[] = array('path' => 'node/add/page', 'title' => t('page'), - 'access' => page_access('create', NULL)); + + if ($may_cache) { + $items[] = array('path' => 'node/add/page', 'title' => t('page'), + 'access' => page_access('create', NULL)); + } + return $items; } |