summaryrefslogtreecommitdiff
path: root/modules/throttle/throttle.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-06-04 07:22:23 +0000
committerDries Buytaert <dries@buytaert.net>2007-06-04 07:22:23 +0000
commit1fe90cba4f4015846021d0074d3335ba05fea393 (patch)
treeb7347ec95002ed10a0b6d667e2b93f2d9621493d /modules/throttle/throttle.module
parent712c5758ff9685d9d8a07cbbe91aa814ca32f0a9 (diff)
downloadbrdo-1fe90cba4f4015846021d0074d3335ba05fea393.tar.gz
brdo-1fe90cba4f4015846021d0074d3335ba05fea393.tar.bz2
- Patch #146667 by Eaton: correct builder argument ordering, eliminate redundant arguments
Diffstat (limited to 'modules/throttle/throttle.module')
-rw-r--r--modules/throttle/throttle.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module
index e1e4b630d..a23614210 100644
--- a/modules/throttle/throttle.module
+++ b/modules/throttle/throttle.module
@@ -156,11 +156,11 @@ function throttle_admin_settings() {
return system_settings_form($form);
}
-function throttle_admin_settings_validate($form, &$form_state, $form_values) {
- if (!is_numeric($form_values['throttle_anonymous']) || $form_values['throttle_anonymous'] < 0) {
- form_set_error('throttle_anonymous', t("%value is not a valid auto-throttle setting. Please enter a positive numeric value.", array('%value' => $form_values['throttle_anonymous'])));
+function throttle_admin_settings_validate($form, &$form_state) {
+ if (!is_numeric($form_state['values']['throttle_anonymous']) || $form_state['values']['throttle_anonymous'] < 0) {
+ form_set_error('throttle_anonymous', t("%value is not a valid auto-throttle setting. Please enter a positive numeric value.", array('%value' => $form_state['values']['throttle_anonymous'])));
}
- if (!is_numeric($form_values['throttle_user']) || $form_values['throttle_user'] < 0) {
- form_set_error('throttle_user', t("%value is not a valid auto-throttle setting. Please enter a positive numeric value.", array('%value' => $form_values['throttle_user'])));
+ if (!is_numeric($form_state['values']['throttle_user']) || $form_state['values']['throttle_user'] < 0) {
+ form_set_error('throttle_user', t("%value is not a valid auto-throttle setting. Please enter a positive numeric value.", array('%value' => $form_state['values']['throttle_user'])));
}
}