image_style_effects
function image_style_effects
image_style_effects($style)
Loads all the effects for an image style.
Parameters
array $style: An image style array containing:
- isid: The unique image style ID that contains this image effect.
Return value
array 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.
See also
File
- modules/image/image.module, line 752
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.module/function/image_style_effects/7.x