| 7 image.module | image_style_effects($style) |
| 8 image.module | image_style_effects($style) |
Load all the effects for an image style.
Parameters
$style: An image style array.
Return value
An array of image effects associated with specified image style in the format array('isid' => array()), or an empty array if the specified style has no effects.
1 call to image_style_effects()
2 string references to 'image_style_effects'
File
- modules/
image/ image.module, line 723 - Exposes global functionality for creating image styles.
Code
function image_style_effects($style) {
$effects = image_effects();
$style_effects = array();
foreach ($effects as $effect) {
if ($style['isid'] == $effect['isid']) {
$style_effects[$effect['ieid']] = $effect;
}
}
return $style_effects;
}
Login or register to post comments