You are here

function hook_invite_withdraw in Invite 7.4

Same name and namespace in other branches
  1. 7.2 invite.api.php \hook_invite_withdraw()

Allow other modules to act on invite's withdrawn.

Parameters

Invite $invite: Invite object.

1 function implements hook_invite_withdraw()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

invite_notifications_invite_withdraw in modules/invite_notifications/invite_notifications.module
Invite Notifications.
1 invocation of hook_invite_withdraw()
invite_withdraw_form_submit in includes/invite.pages.inc
Submit handler to withdraw an invitation.

File

./invite.api.php, line 14
Hooks provided by the Invite.

Code

function hook_invite_withdraw($invite) {

  // Delete notifications when user withdrawn invitation.
  db_delete('invite_notifications')
    ->condition('iid', $invite->iid)
    ->execute();
}