function theme_image_effects_text_summary in ImageCache Actions 7
Same name and namespace in other branches
- 8 image_effects_text/image_effects_text.inc \theme_image_effects_text_summary()
Implements theme_hook() for the text 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
- image_effects_text/
image_effects_text.inc, line 287
Code
function theme_image_effects_text_summary(array $variables) {
$data = $variables['data'];
switch ($data['text_source']) {
case 'alt':
$text = 'image alt';
break;
case 'title':
$text = 'image title';
break;
case 'text':
$text = $data['text'];
break;
case 'php':
$text = 'PHP code';
break;
default:
$text = '';
break;
}
return 'Text: ' . $text . '; Position: ' . $data['xpos'] . ',' . $data['ypos'] . '; Alignment: ' . $data['halign'] . ',' . $data['valign'];
}