You are here

function theme_canvasactions_canvas2file in ImageCache Actions 6

Same name and namespace in other branches
  1. 5.3 canvasactions.inc \theme_canvasactions_canvas2file()
  2. 5.2 canvasactions.inc \theme_canvasactions_canvas2file()
  3. 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']}";
}