You are here

function theme_canvasactions_aspect in ImageCache Actions 6

Same name and namespace in other branches
  1. 6.2 canvasactions/canvasactions.inc \theme_canvasactions_aspect()

Implementation of theme_hook() for imagecache_ui.module

File

./canvasactions.inc, line 973
Helper functions for the text2canvas action for imagecache

Code

function theme_canvasactions_aspect($element) {
  $action = $element['#value'];
  $presets = imagecache_presets(TRUE);
  $ratio_adjustment = '';
  if ($action['ratio_adjustment'] != 1) {
    $ratio_adjustment = " (switch at 1:{$action['ratio_adjustment']})";
  }
  return 'Portrait size: <strong>' . $presets[$action['portrait']]['presetname'] . '</strong>. Landscape size: <strong>' . $presets[$action['landscape']]['presetname'] . '</strong>' . $ratio_adjustment;
}