diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-17 10:28:23 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-10-17 10:28:23 -0700 |
commit | 72ef1daad0b4a05014705edb36790f3c5e9bacf6 (patch) | |
tree | caa20f3924350feaa845532d1b2cea290642b695 /modules/image/image.api.php | |
parent | 89ad342620ab99728f64de4a32e4edf6ade55aa0 (diff) | |
download | brdo-72ef1daad0b4a05014705edb36790f3c5e9bacf6.tar.gz brdo-72ef1daad0b4a05014705edb36790f3c5e9bacf6.tar.bz2 |
Reverting accidental commit with last patch.
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'; } |