Index: modules/image/image.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/image/image.api.php,v
retrieving revision 1.3
diff -u -p -r1.3 image.api.php
--- modules/image/image.api.php	16 Oct 2009 00:52:46 -0000	1.3
+++ modules/image/image.api.php	31 Jan 2010 21:53:02 -0000
@@ -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',
     );
   }
 }
