diff options
Diffstat (limited to 'modules/image/image.api.php')
-rw-r--r-- | modules/image/image.api.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/image/image.api.php b/modules/image/image.api.php index 1cb2b0da7..acb3f9c19 100644 --- a/modules/image/image.api.php +++ b/modules/image/image.api.php @@ -22,10 +22,6 @@ * following items: * - "label": The human-readable name of the effect. * - "effect callback": The function to call to perform this image effect. - * - "dimensions passthrough": (optional) Set this item if the effect doesn't - * change the dimensions of the image. - * - "dimensions callback": (optional) The function to call to transform - * dimensions for this effect. * - "help": (optional) A brief description of the effect that will be shown * when adding or configuring this image effect. * - "form callback": (optional) The name of a function that will return a @@ -41,8 +37,7 @@ function hook_image_effect_info() { $effects['mymodule_resize'] = array( 'label' => t('Resize'), 'help' => t('Resize an image to an exact set of dimensions, ignoring aspect ratio.'), - 'effect callback' => 'mymodule_resize_effect', - 'dimensions callback' => 'mymodule_resize_dimensions', + 'effect callback' => 'mymodule_resize_image', 'form callback' => 'mymodule_resize_form', 'summary theme' => 'mymodule_resize_summary', ); @@ -61,7 +56,6 @@ function hook_image_effect_info() { 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']['dimensions callback'] = 'mymodule_crop_dimensions'; $effects['image_crop']['form callback'] = 'mymodule_crop_form'; } |