function throttle_admin_settings_validate in Drupal 6        
                          
                  
                        Same name and namespace in other branches
- 5 modules/throttle/throttle.module \throttle_admin_settings_validate()
1 string reference to 'throttle_admin_settings_validate'
  - throttle_admin_settings in modules/throttle/throttle.admin.inc
- Form builder; Configure the throttle system.
File
 
   - modules/throttle/throttle.admin.inc, line 47
- Admin page callbacks for the throttle module.
Code
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_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'],
    )));
  }
}