function theme_imagecacheactions_rgb in ImageCache Actions 6
Same name and namespace in other branches
- 8 utility-color.inc \theme_imagecacheactions_rgb()
- 6.2 utility-color.inc \theme_imagecacheactions_rgb()
- 7 utility-color.inc \theme_imagecacheactions_rgb()
3 calls to theme_imagecacheactions_rgb()
- theme_canvasactions_definecanvas in ./
canvasactions.inc - Implementation of theme_hook() for imagecache_ui.module
- theme_imagecache_alpha in ./
transparency.inc - Implementation of theme_hook() for imagecache_ui.module
- theme_imagecache_colorshift in ./
imagecache_coloractions.module - Implementation of theme_hook() for imagecache_ui.module
File
- ./
utility.inc, line 122 - Utility form, conversion and rendering functions for image processes
Code
function theme_imagecacheactions_rgb($rgb) {
if ($rgb['HEX']) {
return " <span style=\"width:2em; border:1px solid white; background-color:#{$rgb['HEX']}\" > #{$rgb['HEX']} </span>";
}
else {
return ' ' . t('Transparent');
}
}