diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-01 07:07:57 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-01 07:07:57 +0000 |
commit | 4cc54a5b1cae4841c19bc4f60f95bb653615fe5c (patch) | |
tree | ad6ad626777c404dd59756489c46f9f60668501f | |
parent | 9a887f86263c5c4820a8b791c3d8164ee0df6156 (diff) | |
download | brdo-4cc54a5b1cae4841c19bc4f60f95bb653615fe5c.tar.gz brdo-4cc54a5b1cae4841c19bc4f60f95bb653615fe5c.tar.bz2 |
#658056 by theunraveler: image.api.php cleanup.
-rw-r--r-- | modules/image/image.api.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/image/image.api.php b/modules/image/image.api.php index 6339f5eb3..6f1ff37ac 100644 --- a/modules/image/image.api.php +++ b/modules/image/image.api.php @@ -88,8 +88,7 @@ function hook_image_style_delete($style) { * images are being deleted from the server and regenerated). Any * module-specific caches that contain information related to the style should * be cleared using this hook. This hook is called whenever a style is updated, - * deleted, any effect associated with the style is update or deleted, or when - * the user selects the style flush option. + * deleted, or any effect associated with the style is update or deleted. * * @param $style * The image style array that is being flushed. @@ -119,7 +118,7 @@ function hook_image_style_flush($style) { * * @see hook_image_default_styles() */ -function hook_image_styles_alter($styles) { +function hook_image_styles_alter(&$styles) { // Check that we only affect a default style. if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) { // Add an additional effect to the thumbnail style. @@ -127,6 +126,7 @@ function hook_image_styles_alter($styles) { 'name' => 'image_desaturate', 'data' => array(), 'weight' => 1, + 'effect callback' => 'image_desaturate_effect', ); } } |