Index: invite.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/invite/invite.module,v retrieving revision 1.10.2.68 diff -u -r1.10.2.68 invite.module --- invite.module 2 Sep 2007 01:49:44 -0000 1.10.2.68 +++ invite.module 2 Sep 2007 01:55:22 -0000 @@ -888,11 +888,15 @@ 'data' => array('subject' => $subject, 'message' => $message), )); + // Allow other modules to modify the invitation + $args = array('invite' => &$invite); + module_invoke_all('invite', 'prepare', $args); + // Perform token replacement on mail body $body = token_replace_multiple(t(_invite_get_mail_template()), _invite_token_types($invite)); // Send e-mail - if (_invite_send_invite($email, $subject, $body)) { + if (_invite_send_invite($invite->email, $invite->subject, $body)) { // Save invite invite_save($invite);