function coloractions_coloroverlay_effect in ImageCache Actions 8
Same name and namespace in other branches
- 7 coloractions/imagecache_coloractions.module \coloractions_coloroverlay_effect()
Image effect callback for the color overlay effect.
Parameters
stdClass $image:
array $data:
Return value
bool true on success, false otherwise.
1 string reference to 'coloractions_coloroverlay_effect'
- imagecache_coloractions_image_effect_info in coloractions/
imagecache_coloractions.module - Implements hook_image_effect_info().
File
- coloractions/
imagecache_coloractions.module, line 346
Code
function coloractions_coloroverlay_effect(stdClass $image, array $data) {
// convert color from hex (as it is stored in the UI)
if ($data['RGB']['HEX'] && ($deduced = imagecache_actions_hex2rgba($data['RGB']['HEX']))) {
$data['RGB'] = array_merge($data['RGB'], $deduced);
}
return image_toolkit_invoke('coloroverlay', $image, array(
$data,
));
}