You are here

function theme_imagecache_reflect_summary in ImageCache Reflect 8

Same name and namespace in other branches
  1. 7 imagecache_reflect.module \theme_imagecache_reflect_summary()

Formats a summary of the reflection-like effect.

Parameters

array $variables: An associative array containing:

  • data: The current configuration for this reflection-like effect.
1 theme call to theme_imagecache_reflect_summary()
ReflectImageEffect::getSummary in lib/Drupal/imagecache_reflect/Plugin/ImageEffect/ReflectImageEffect.php
Returns a render array summarizing the configuration of the image effect.

File

./imagecache_reflect.module, line 38
Module file for imagecache_reflect

Code

function theme_imagecache_reflect_summary($variables) {
  $data = $variables['data'];
  return t('Background Color: @color, Preserve transparency: @preserve, Position: @position, Size: @size', array(
    '@color' => !empty($data['bgcolor']) ? $data['bgcolor'] : t('none'),
    '@preserve' => $data['transparency'] ? t('Yes') : t('No'),
    '@position' => $data['position'],
    '@size' => $data['size'],
  ));
}