function _addthis_validate_ui_delay in AddThis 6.3
Checks whether ui_delay stays is a number between 0 and 500.
1 string reference to '_addthis_validate_ui_delay'
- addthis_config_form in ./
addthis.admin.inc - Return a form object for default AddThis settings.
File
- ./
addthis.admin.inc, line 394 - Configuration settings for AddThis.
Code
function _addthis_validate_ui_delay($element, &$form_state) {
$value = $element['#value'];
if ($value && (!is_numeric($value) || $value < 0 || $value > 500)) {
form_error($element, t('%name must be a number between 0 and 500.', array(
'%name' => $element['#title'],
)));
}
}