function theme_coloractions_adjustlevels_summary in ImageCache Actions 7
Same name and namespace in other branches
- 8 coloractions/imagecache_coloractions.module \theme_coloractions_adjustlevels_summary()
Implements theme_hook() for the adjust color levels effect summary.
Parameters
array $variables: An associative array containing:
- data: The current configuration for this image effect.
Return value
string The HTML for the summary of this image effect.
File
- coloractions/
imagecache_coloractions.module, line 1131
Code
function theme_coloractions_adjustlevels_summary(array $variables) {
$data = $variables['data'];
if (empty($data['independent_colors'])) {
return t('@range', array(
'@range' => "[{$data['all_colors']['low']} - {$data['all_colors']['high']}]",
));
}
else {
return t('red: @red-range, green: @green-range, blue: @blue-range', array(
'@red-range' => "[{$data['per_color']['low_red']} - {$data['per_color']['high_red']}]",
'@green-range' => "[{$data['per_color']['low_green']} - {$data['per_color']['high_green']}]",
'@blue-range' => "[{$data['per_color']['low_blue']} - {$data['per_color']['high_blue']}]",
));
}
}