hook_image_effect_info_alter() doesn't change effect callback I'm trying to patch the image effect from the Kraken module.
I'm doing so by using hook_image_effect_info_alter() to point the 'effect callback' to my patched function, like this:

function patch_image_effect_info_alter(&amp;$effects) {
  $effects['kraken_optimize']['effect callback'] = 'patch_kraken_optimize';
  watchdog('patch_kraken', print_r($effects, TRUE)); // logging for debug
}


The problem is that this the hook doesn't seem to really change the effect defined on the Kraken module. Even though I'm getting the log message I defined in the hook with the updated effect callback, the original Kraken module effect is still being applied.

Am I using this hook the right way?
I found the issue.

It turns out there was another custom module "restoring" the original callback.