theme_image_resize_summary

  1. drupal
    1. 8
    2. 7
Versions
8 – 7 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

Code

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

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