Index: README.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/invite/README.txt,v retrieving revision 1.14.2.1 diff -u -p -r1.14.2.1 README.txt --- README.txt 29 Jul 2010 00:58:30 -0000 1.14.2.1 +++ README.txt 1 Aug 2010 18:14:00 -0000 @@ -148,6 +148,7 @@ function hook_invite($op, $args) { inviting. $args['roles']: An array of roles the invited person has been escalated to. + $args['code']: The tracking code of the invitation. case 'cancel': Inviter has cancelled an invitation. Index: invite.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/invite/invite.module,v retrieving revision 1.25.2.17 diff -u -p -r1.25.2.17 invite.module --- invite.module 1 Aug 2010 16:19:22 -0000 1.25.2.17 +++ invite.module 1 Aug 2010 18:14:00 -0000 @@ -528,7 +528,7 @@ function invite_process($invite, $accoun $roles = invite_target_roles($invite); // Allow other modules to act on the role escalation. - $args = array('invitee' => $account, 'inviter' => $invite->inviter, 'roles' => &$roles); + $args = array('invitee' => $account, 'inviter' => $invite->inviter, 'roles' => &$roles, 'code' => $invite->reg_code); module_invoke_all('invite', 'escalate', $args); return $roles;