_throttle_validate

1 call to _throttle_validate()

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))));
    }
  }
}
Login or register to post comments