function imageapi_optimize_validate_path in Image Optimize (or ImageAPI Optimize) 7
Same name and namespace in other branches
- 6 imageapi_optimize.module \imageapi_optimize_validate_path()
Validation callback for binary fields.
2 string references to 'imageapi_optimize_validate_path'
- imageapi_optimize_internal_binary_settings in services/
internal.inc - Form callback for Internal binary settings.
- imageapi_optimize_services_internal_form in services/
internal.inc - Internal ImageAPI Optimize form callback.
File
- services/
internal.inc, line 196 - Internal ImageAPI Optimize service.
Code
function imageapi_optimize_validate_path($element) {
$errors = _imageapi_optimize_check_path($element['#value']);
if ($errors) {
form_set_error($element['#parents'][0], implode('<br />', $errors));
return FALSE;
}
return TRUE;
}