function invite_user_delete in Invite 7.2
Implements hook_user_delete().
File
- ./
invite.module, line 697 - Allows your users to send and track invitations to join your site.
Code
function invite_user_delete($account) {
// Delete any invites originating from this user.
invite_delete(array(
'uid' => $account->uid,
));
// Clean up the notification queue.
db_delete('invite_notifications')
->condition('uid', $account->uid)
->execute();
}