function imageapi_optimize_validate_path in Image Optimize (or ImageAPI Optimize) 6
Same name and namespace in other branches
- 7 services/internal.inc \imageapi_optimize_validate_path()
1 string reference to 'imageapi_optimize_validate_path'
- imageapi_optimize_settings_form in ./
imageapi_optimize.module - Settings form for the toolkit.
File
- ./
imageapi_optimize.module, line 131 - Image optimize functionalities
Code
function imageapi_optimize_validate_path($element) {
if ($errors = _imageapi_optimize_check_path($element['#value'])) {
form_set_error($element['#parents'][0], implode('<br />', $errors));
return FALSE;
}
return TRUE;
}