| Versions | |
|---|---|
| 7 | hook_image_effect_info_alter(&$effects) |
Alter the information provided in hook_image_effect_info().
$effects The array of image effects, keyed on the machine-readable effect name.
drupal/
<?php
function hook_image_effect_info_alter(&$effects) {
// Override the Image module's crop effect with more options.
$effect['image_crop']['effect callback'] = 'mymodule_crop_effect';
$effect['image_crop']['form callback'] = 'mymodule_crop_form';
}
?>