Same name and namespace in other branches
  1. 4.6.x modules/throttle.module \_throttle_validate()
1 call to _throttle_validate()
throttle_settings in modules/throttle.module
Implementation of hook_settings().

File

modules/throttle.module, line 92
Allows configuration of congestion control auto-throttle mechanism.

Code

function _throttle_validate($value, $form) {
  if ($value != NULL) {
    if (!is_numeric($value) || $value < 0) {
      form_set_error($form, t("'%value' is not a valid auto-throttle setting.  Please enter a positive numeric value.", array(
        '%value' => theme('placeholder', $value),
      )));
    }
  }
}