You are here

function _invite_set_accepted in Invite 5

Sets an invitation's status to accepted.

Parameters

$email: The e-mail address the invitee actually used in the registration.

$uid: The user id of the newly registered user.

$code: The registration code of the originating invite.

1 call to _invite_set_accepted()
invite_user in ./invite.module
Implementation of hook_user().

File

./invite.module, line 1305
Allows your users to send and track invitations to join your site.

Code

function _invite_set_accepted($email, $uid, $code) {
  db_query("UPDATE {invite} SET timestamp = %d, mid = %d, email = '%s' WHERE reg_code = '%s'", time(), $uid, $email, $code);
}