You are here

function theme_imagecacheactions_rgb in ImageCache Actions 6.2

Same name and namespace in other branches
  1. 8 utility-color.inc \theme_imagecacheactions_rgb()
  2. 6 utility.inc \theme_imagecacheactions_rgb()
  3. 7 utility-color.inc \theme_imagecacheactions_rgb()
3 calls to theme_imagecacheactions_rgb()
theme_imagecache_alpha in coloractions/transparency.inc
Implementation of theme_hook() for imagecache_ui.module
theme_imagecache_coloroverlay in coloractions/imagecache_coloractions.module
Implementation of theme_hook() for imagecache_ui.module
theme_imagecache_colorshift in coloractions/imagecache_coloractions.module
Implementation of theme_hook() for imagecache_ui.module
1 theme call to theme_imagecacheactions_rgb()
theme_canvasactions_definecanvas in canvasactions/canvasactions.inc
Implementation of theme_hook() for imagecache_ui.module

File

./utility-color.inc, line 77
Utility functions for color widgets

Code

function theme_imagecacheactions_rgb($rgb) {
  if ($rgb['HEX']) {
    return " <span style=\"width:2em; border:1px solid white; background-color:#{$rgb['HEX']}\" >&nbsp;#{$rgb['HEX']}&nbsp;</span>";
  }
  else {
    return ' ' . t('Transparent');
  }
}