From 4158be700a54f514c5313813c36c2149276cdf2e Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Tue, 21 Jun 2011 23:23:08 -0700
Subject: [PATCH] Issue #1187898 by droplet, Setca: Fixed
 hook_image_effect_info_alter() - sample function body uses wrong variable
 name.

---
 modules/image/image.api.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/image/image.api.php b/modules/image/image.api.php
index 5b635ec749bc..acb3f9c1983f 100644
--- a/modules/image/image.api.php
+++ b/modules/image/image.api.php
@@ -55,8 +55,8 @@ function hook_image_effect_info() {
  */
 function hook_image_effect_info_alter(&$effects) {
   // Override the Image module's crop effect with more options.
-  $effect['image_crop']['effect callback'] = 'mymodule_crop_effect';
-  $effect['image_crop']['form callback'] = 'mymodule_crop_form';
+  $effects['image_crop']['effect callback'] = 'mymodule_crop_effect';
+  $effects['image_crop']['form callback'] = 'mymodule_crop_form';
 }
 
 /**
-- 
GitLab