? 2010-12-07-imagecache_actions-648950.patch Index: imagecache_canvasactions.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagecache_actions/imagecache_canvasactions.module,v retrieving revision 1.3.2.16 diff -u -5 -p -r1.3.2.16 imagecache_canvasactions.module --- imagecache_canvasactions.module 28 Dec 2009 03:26:53 -0000 1.3.2.16 +++ imagecache_canvasactions.module 7 Dec 2010 12:44:34 -0000 @@ -150,11 +150,12 @@ function imageapi_image_overlay(&$image, * resource handles, the handle needs to be swapped before returning. * * @ingroup imageapi * @param $image * Base imageapi object. - * @param $overlay + * # TODO: The $overlay is now $layer. Is it the same? + * @param $overlay * May be a filename or an imageAPI object * @param $x * Position of the overlay * @param $y * Position of the overlay @@ -165,11 +166,11 @@ function imageapi_image_overlay(&$image, * BOOL flag to indicate the 'overlay' actually goes under the image. As * the imageapi callbacks modify the $image object by reference, this is needed * to replace the old image resource with the new one. * @return bool success */ -function imageapi_gd_image_overlay(&$image, &$layer, $x, $y, $alpha = 100, $reverse = FALSE) { +function imageapi_gd_image_overlay(&$image, $layer, $x, $y, $alpha = 100, $reverse = FALSE) { if (empty($layer->resource)) { trigger_error("Invalid input to ". __FUNCTION__ . " 'layer' is not a valid resource"); #dpm($layer); return FALSE; } @@ -276,6 +277,6 @@ function imagecache_canvasactions_theme( 'canvasactions_aspect' => array( 'file' => 'canvasactions.inc', 'arguments' => array('element' => NULL), ), ); -} \ No newline at end of file +}