function _throttle_validate in Drupal 4
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),
)));
}
}
}