diff options
Diffstat (limited to 'modules/archive/archive.module')
-rw-r--r-- | modules/archive/archive.module | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 21047dae7..d92e990f0 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -207,12 +207,15 @@ function archive_link($type) { /** * Implementation of hook_menu(). */ -function archive_menu() { +function archive_menu($may_cache) { $items = array(); - $items[] = array('path' => 'archive', 'title' => t('archives'), - 'access' => user_access('access content'), - 'callback' => 'archive_page', - 'type' => MENU_SUGGESTED_ITEM); + + if ($may_cache) { + $items[] = array('path' => 'archive', 'title' => t('archives'), + 'access' => user_access('access content'), + 'callback' => 'archive_page', + 'type' => MENU_SUGGESTED_ITEM); + } return $items; } |