You are here

function theme_manualcrop_auto_reuse_summary in Manual Crop 7

Returns HTML for a summary of an image crop selection auto reuse effect.

Parameters

$variables: An associative array containing:

  • data: The current configuration for this crop selection select effect.

Return value

Summary HTML.

File

./manualcrop.admin.inc, line 394
Admin functionality for the Manual Crop module.

Code

function theme_manualcrop_auto_reuse_summary($variables) {
  if (!empty($variables['data']['fallback_style'])) {
    return '(' . t('using @style as fallback style', array(
      '@style' => _manualcrop_image_style_label($variables['data']['fallback_style']),
    )) . ')';
  }
  return '';
}