function canvasactions_file2canvas_validate_file in ImageCache Actions 6
Same name and namespace in other branches
- 6.2 canvasactions/canvasactions.inc \canvasactions_file2canvas_validate_file()
Check if the named file is available
2 string references to 'canvasactions_file2canvas_validate_file'
- canvasactions_canvas2file_form in ./
canvasactions.inc - Place a given image under the current canvas
- canvasactions_file2canvas_form in ./
canvasactions.inc - Place a given image on top of the current canvas
File
- ./
canvasactions.inc, line 508 - Helper functions for the text2canvas action for imagecache
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'],
)));
}
}