Full ELMS Learning Network documentation
function theme_image_resize_summary
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 image.admin.inc | theme_image_resize_summary($variables) |
cle7 image.admin.inc | theme_image_resize_summary($variables) |
elmsmedia7 image.admin.inc | theme_image_resize_summary($variables) |
icor7 image.admin.inc | theme_image_resize_summary($variables) |
meedjum_blog7 image.admin.inc | theme_image_resize_summary($variables) |
mooc7 image.admin.inc | 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
3 theme calls to theme_image_resize_summary()
- theme_imagefield_focus_scale_and_crop_summary in sites/
all/ modules/ ulmus/ imagefield_focus/ imagefield_focus.effects.inc - 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.
6 string references to the theme hook from theme_image_resize_summary()
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- image_image_effect_info in modules/
image/ image.effects.inc - Implements hook_image_effect_info().
- image_theme in modules/
image/ image.module - Implements hook_theme().
- smartcrop_image_effect_info in sites/
all/ modules/ ulmus/ smartcrop/ smartcrop.effects.inc - Implements hook_image_effect_info().
- theme_imagefield_focus_scale_and_crop_summary in sites/
all/ modules/ ulmus/ imagefield_focus/ imagefield_focus.effects.inc - theme_image_crop_summary in modules/
image/ image.admin.inc - Returns HTML for a summary of an image crop effect.
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']));
}
}