function theme_imagecache_subroutine in ImageCache Actions 6.2
This lets the user see what parameters were selected for the action
File
- customactions/
imagecache_customactions.module, line 221 - Allow advanced users to code their own PHP image manipulation routines as part of imagecache processing.
Code
function theme_imagecache_subroutine($element) {
$data = $element['#value'];
if ($preset = imagecache_preset_by_name($data['subroutine_presetname'])) {
return t('%name (pid: !presetid)', array(
'%name' => $preset['presetname'],
'!presetid' => $preset['presetid'],
));
}
return t('<span class="error">Invalid reference. The referenced preset may have been deleted!</span>');
}