You are here

function theme_imagecache_resize in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_actions.inc \theme_imagecache_resize()
2 calls to theme_imagecache_resize()
theme_imagecache_scale in ./imagecache_actions.inc
theme_imagecache_scale_and_crop in ./imagecache_actions.inc

File

./imagecache_actions.inc, line 27

Code

function theme_imagecache_resize($element) {
  $data = $element['#value'];
  if ($data['width'] && $data['height']) {
    return check_plain($data['width']) . 'x' . check_plain($data['height']);
  }
  return $data['width'] ? t('width @width', array(
    '@width' => $data['width'],
  )) : t('height @height', array(
    '@height' => $data['height'],
  ));
}