You are here

function theme_canvasactions_canvas2file in ImageCache Actions 6.2

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 canvasactions.inc \theme_canvasactions_canvas2file()

Implementation of theme_hook() for imagecache_ui.module

File

canvasactions/canvasactions.inc, line 463

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}'>" . basename($data['path']) . "</a>, dimensions:{$data['dimensions']}";
}