function theme_canvasactions_canvas2file in ImageCache Actions 6
Same name and namespace in other branches
- 5.3 canvasactions.inc \theme_canvasactions_canvas2file()
- 5.2 canvasactions.inc \theme_canvasactions_canvas2file()
- 6.2 canvasactions/canvasactions.inc \theme_canvasactions_canvas2file()
Implementation of theme_hook() for imagecache_ui.module
File
- ./
canvasactions.inc, line 373 - Helper functions for the text2canvas action for imagecache
Code
function theme_canvasactions_canvas2file($element) {
$data = $element['#value'];
$filepath = $data['path'];
if (!file_exists($filepath)) {
$filepath = file_create_path($data['path']);
}
$file_url = url($filepath);
return "xpos:{$data['xpos']} , ypos:{$data['ypos']} alpha:{$data['alpha']}%. file path:<a href='{$file_url}'>{$data['path']}</a>, dimensions:{$data['dimensions']}";
}