2 * Implements hook_image_effect_info_alter().
4 function {{ machine_name }}_image_effect_info_alter(&$effects) {
5 // Override the Image module's crop effect with more options.
6 $effects['image_crop']['effect callback'] = 'mymodule_crop_effect';
7 $effects['image_crop']['dimensions callback'] = 'mymodule_crop_dimensions';
8 $effects['image_crop']['form callback'] = 'mymodule_crop_form';