function imageapi_imagemagick_validate_path in ImageAPI 6
1 string reference to 'imageapi_imagemagick_validate_path'
- imageapi_imagemagick_settings_form in ./
imageapi_imagemagick.module - Settings form for the toolkit.
File
- ./
imageapi_imagemagick.module, line 84 - ImageMagick toolkit functions
Code
function imageapi_imagemagick_validate_path($element) {
if ($errors = _imageapi_imagemagick_check_path($element['#value'])) {
form_set_error($element['#parents'][0], implode('<br />', $errors));
//form_set_value($element['#parents'][0], variable_get('imageapi_imagemagick_convert', '/usr/bin/convert'));
return FALSE;
}
return TRUE;
}