function invite_accept in Invite 6.2
Same name and namespace in other branches
- 5.2 invite.module \invite_accept()
- 7.4 includes/invite.pages.inc \invite_accept()
- 7.2 invite.pages.inc \invite_accept()
Menu callback; handle incoming requests for accepting an invite.
Parameters
$invite: A (unvalidated) invite object.
1 string reference to 'invite_accept'
- invite_menu in ./
invite.module - Implementation of hook_menu().
File
- ./
invite.module, line 326 - Allows your users to send and track invitations to join your site.
Code
function invite_accept($invite) {
global $user;
if (!$user->uid && invite_validate($invite)) {
$_SESSION[INVITE_SESSION] = $invite->reg_code;
drupal_goto(variable_get('invite_registration_path', 'user/register'));
}
drupal_goto();
}