You are here

function theme_imagecache_convert in ImageCache Actions 6.2

Same name and namespace in other branches
  1. 5.3 imagecache_coloractions.module \theme_imagecache_convert()
  2. 5.2 imagecache_coloractions.module \theme_imagecache_convert()
  3. 6 imagecache_coloractions.module \theme_imagecache_convert()

Implementation of theme_hook() for imagecache_ui.module

File

coloractions/imagecache_coloractions.module, line 389
Additional actions for imagecache processing.

Code

function theme_imagecache_convert($element) {
  $data = $element['#value'];
  $formats = imagecache_file_formats();
  if ($formats[$data['format']] == 'jpg') {
    return t('Convert to: @format, quality: @quality%', array(
      '@format' => $formats[$data['format']],
      '@quality' => $data['quality'],
    ));
  }
  else {
    return t("Convert to") . ": " . $formats[$data['format']];
  }
}