function theme_image_resize_summary

Returns HTML for a summary of an image resize effect.

Parameters

$variables: An associative array containing:

  • data: The current configuration for this resize effect.

Related topics

2 theme calls to theme_image_resize_summary()
theme_image_crop_summary in modules/image/image.admin.inc
Returns HTML for a summary of an image crop effect.
theme_image_scale_summary in modules/image/image.admin.inc
Returns HTML for a summary of an image scale effect.

File

modules/image/image.admin.inc, line 889

Code

function theme_image_resize_summary($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'],
        ));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.