You are here

function _invite_unblock in Invite 5

Approves the account of an invited user.

Invited users are always automatically approved (ie. unblocked).

Parameters

$uid: The user id to unblock.

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

File

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

Code

function _invite_unblock($uid) {
  db_query("UPDATE {users} SET status = 1 WHERE uid = %d", $uid);
}