hook_image_effect_info_alter

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_image_effect_info_alter(&$effects)

Alter the information provided in hook_image_effect_info().

Parameters

$effects The array of image effects, keyed on the machine-readable effect name.

See also

hook_image_effect_info()

Related topics

Code

modules/image/image.api.php, line 56

<?php
function hook_image_effect_info_alter(&$effects) {
  // Override the Image module's crop effect with more options.
  $effects['image_crop']['effect callback'] = 'mymodule_crop_effect';
  $effects['image_crop']['form callback'] = 'mymodule_crop_form';
}
?>