diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-16 07:17:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-16 07:17:56 +0000 |
commit | 5c7983c4deae55ad41b85ca99db54d3fce283fd9 (patch) | |
tree | 59801cd96a36c390586752c58d6cf5ba50c230ce /modules/queue.module | |
parent | 6f0fd3aa55659f8bd6b023e8e82e990326c1b788 (diff) | |
download | brdo-5c7983c4deae55ad41b85ca99db54d3fce283fd9.tar.gz brdo-5c7983c4deae55ad41b85ca99db54d3fce283fd9.tar.bz2 |
- Patch #8179 by JonBob: reintroduced menu caching.
Diffstat (limited to 'modules/queue.module')
-rw-r--r-- | modules/queue.module | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/queue.module b/modules/queue.module index a0f9923b6..5176ef971 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -40,12 +40,16 @@ function queue_perm() { /** * Implementation of hook_menu(). */ -function queue_menu($type) { +function queue_menu($may_cache) { $items = array(); - $items[] = array('path' => 'queue', 'title' => t('submission queue'), - 'callback' => 'queue_page', - 'access' => user_access('access submission queue'), - 'weight' => 1); + + if ($may_cache) { + $items[] = array('path' => 'queue', 'title' => t('submission queue'), + 'callback' => 'queue_page', + 'access' => user_access('access submission queue'), + 'weight' => 1); + } + return $items; } |