Module creates message_alter hook so other modules can alter message but doesn't pass $message by reference

--- messaging.module	2009-03-30 10:57:44.880125000 -0600
+++ messaging_patched.module	2009-03-30 11:02:55.364500000 -0600
@@ -460,7 +460,7 @@ function messaging_message_send($destina
   // Provides a hook for other modules to modify the message before sending  
   foreach (module_implements('message_alter') as $module) {
     $function = $module.'_message_alter';
-    $function($message, $info, $method);
+    $function(&$message, $info, $method);
   }
 
   // Renders subject and body applying filters in the process
CommentFileSizeAuthor
messaging_pass_by_reference.patch522 bytesheydemo

Comments

heydemo’s picture

Status: Active » Closed (fixed)

Ok, never mind, the module that implements this hook simply needs to pass by reference.... I get it.