function canvasactions_file2canvas_validate_file in ImageCache Actions 6.2
Same name and namespace in other branches
- 6 canvasactions.inc \canvasactions_file2canvas_validate_file()
Check if the named file is available
3 string references to 'canvasactions_file2canvas_validate_file'
- canvasactions_canvas2file_form in canvasactions/
canvasactions.inc - Place a given image under the current canvas
- canvasactions_file2canvas_form in canvasactions/
canvasactions.inc - Place a given image on top of the current canvas
- canvasactions_imagemask_form in canvasactions/
canvasactions.inc - Use a given image to mask the current canvas
File
- canvasactions/
canvasactions.inc, line 599
Code
function canvasactions_file2canvas_validate_file(&$element, &$form_status) {
if (!file_exists($element['#value']) && !file_exists(file_create_path($element['#value']))) {
form_error($element, t("Unable to find the named file '%filepath' in either the site or the files directory. Please check the path. Use relative paths only.", array(
'%filepath' => $element['#value'],
)));
}
}