You are here

function theme_canvasactions_aspect in ImageCache Actions 6.2

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

Implementation of theme_hook() for imagecache_ui.module

File

canvasactions/canvasactions.inc, line 767

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>' . $action['portrait'] . '</strong>. Landscape size: <strong>' . $action['landscape'] . '</strong>' . $ratio_adjustment;
}