function theme_image_resize_summary

theme_image_resize_summary($variables)

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

File

modules/image/image.admin.inc, line 875
Administration pages for image settings.

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']));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.admin.inc/function/theme_image_resize_summary/7.x