summaryrefslogtreecommitdiff
path: root/modules/throttle/throttle.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-18 18:58:47 +0000
commit7de41539df93abeea427c1aa83ee7e13684a4fc6 (patch)
treecbe403960892b0f34dbc2674bd068686b6b22693 /modules/throttle/throttle.module
parente2f42cf3d544bc90accaab9eff800277ac60c9f1 (diff)
downloadbrdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.gz
brdo-7de41539df93abeea427c1aa83ee7e13684a4fc6.tar.bz2
- Patch #77919 by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model.
Diffstat (limited to 'modules/throttle/throttle.module')
-rw-r--r--modules/throttle/throttle.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index 641ee0490..4707aa580 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -14,7 +14,8 @@ function throttle_menu($may_cache) {
'path' => 'admin/settings/throttle',
'description' => t('Control how your site cuts out content during heavy load.'),
'title' => t('throttle'),
- 'callback' => 'throttle_admin_settings',
+ 'callback' => 'drupal_get_form',
+ 'callback arguments' => array('throttle_admin_settings'),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM
);
@@ -168,5 +169,5 @@ function throttle_admin_settings() {
'#description' => t('The auto-throttle probability limiter is an efficiency mechanism to statistically reduce the overhead of the auto-throttle. The limiter is expressed as a percentage of page views, so for example if set to the default of 10% we only perform the extra database queries to update the throttle status 1 out of every 10 page views. The busier your site, the lower you should set the limiter value.')
);
- return system_settings_form('throttle_admin_settings', $form);
+ return system_settings_form($form);
}