function theme_image_max_size_crop_summary in Image max size crop 7
Returns HTML for a summary of an image crop effect.
Parameters
array $variables: An associative array containing:
- data: The current configuration for this crop effect.
File
- ./
image_max_size_crop.module, line 46 - Functions needed to create an image style.
Code
function theme_image_max_size_crop_summary(array $variables) {
$data = $variables['data'];
if ($data['width'] && $data['height']) {
return check_plain($data['width']) . 'x' . check_plain($data['height']);
}
else {
return $data['width'] ? t('width @width', array(
'@width' => $data['width'],
)) : t('height @height', array(
'@height' => $data['height'],
));
}
}