function invite_invite_update in Invite 7.4
Implements hook_invite_update().
File
- ./
invite.module, line 813
Code
function invite_invite_update($invite) {
// When invite has been accepted, trigger accept hook.
if (isset($invite->original) && !$invite->original->joined && $invite->joined) {
$account = $invite
->invitee();
module_invoke_all('invite_accept', $invite, $account);
if (module_exists('rules')) {
rules_invoke_event('invite_accept', $invite, $account);
}
}
}