function invite_load_from_session in Invite 5
Same name and namespace in other branches
- 5.2 invite.module \invite_load_from_session()
- 6.2 invite.module \invite_load_from_session()
- 7.4 invite.module \invite_load_from_session()
Returns an invite record from an invite code stored in the user's session.
Return value
An invite record, or FALSE if there is no invite code stored in the user's session.
2 calls to invite_load_from_session()
- invite_form_alter in ./
invite.module - Implementation of hook_form_alter().
- invite_user in ./
invite.module - Implementation of hook_user().
File
- ./
invite.module, line 508 - Allows your users to send and track invitations to join your site.
Code
function invite_load_from_session() {
if (isset($_SESSION[INVITE_SESSION_NAME])) {
return invite_load($_SESSION[INVITE_SESSION_NAME]);
}
return FALSE;
}