diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-01-24 14:48:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-01-24 14:48:36 +0000 |
commit | 03752e35a41992c3d61f2591980020c87af257e7 (patch) | |
tree | dd8d9f51a47716785083591d82ca873c201c1057 /modules/throttle | |
parent | d407de4cec606623a5946805d2d42b580ccb116b (diff) | |
download | brdo-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/throttle')
-rw-r--r-- | modules/throttle/throttle.module | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module index 36510be63..9879fe55e 100644 --- a/modules/throttle/throttle.module +++ b/modules/throttle/throttle.module @@ -6,21 +6,14 @@ * Allows configuration of congestion control auto-throttle mechanism. */ -function throttle_menu($may_cache) { - $items = array(); - - if ($may_cache) { - $items[] = array( - 'path' => 'admin/settings/throttle', - 'description' => t('Control how your site cuts out content during heavy load.'), - 'title' => t('Throttle'), - 'callback' => 'drupal_get_form', - 'callback arguments' => array('throttle_admin_settings'), - 'access' => user_access('administer site configuration'), - 'type' => MENU_NORMAL_ITEM - ); - } - +function throttle_menu() { + $items['admin/settings/throttle'] = array( + 'description' => t('Control how your site cuts out content during heavy load.'), + 'title' => t('Throttle'), + 'page callback' => 'drupal_get_form', + 'page arguments' => array('throttle_admin_settings'), + 'access arguments' => array('administer site configuration'), + ); return $items; } |