Loads the definition for an image effect.
The effect definition is a set of core properties for an image effect, not containing any user-settings. The definition defines various functions to call when configuring or executing an image effect. This loader is mostly for internal use within image.module. Use image_effect_load() or image_style_load() to get image effects that contain configuration.
$effect: The name of the effect definition to load.
$style: An image style array to which this effect will be added.
An array containing the image effect definition with the following keys:
function image_effect_definition_load($effect, $style_name = NULL) {
$definitions = image_effect_definitions();
// If a style is specified, do not allow loading of default style
// effects.
if (isset($style_name)) {
$style = image_style_load($style_name, NULL);
if ($style['storage'] == IMAGE_STORAGE_DEFAULT) {
return FALSE;
}
}
return isset($definitions[$effect]) ? $definitions[$effect] : FALSE;
}