function theme_imagecache_subroutine_summary in ImageCache Actions 8
Same name and namespace in other branches
- 7 customactions/imagecache_customactions.module \theme_imagecache_subroutine_summary()
Implements theme_hook() for the subroutine 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
- customactions/
imagecache_customactions.module, line 250 - Allows advanced users to code their own PHP image manipulation routines as part of image style processing.
Code
function theme_imagecache_subroutine_summary(array $variables) {
$data = $variables['data'];
module_load_include('inc', 'imagecache_actions', 'utility');
$label = imagecache_actions_get_style_label($data['subroutine_presetname']);
return t('Apply image style %label', array(
'%label' => $label,
));
}