You are here

function invite_by_code_load in Invite 7.4

Loads Invite by registration code.

Parameters

string $reg_code:

Return value

Invite

1 call to invite_by_code_load()
invite_load_from_session in ./invite.module
Loads Invite using information stored in session.

File

./invite.module, line 549

Code

function invite_by_code_load($reg_code) {
  $invites = invite_load_multiple(FALSE, array(
    'reg_code' => $reg_code,
  ));
  return reset($invites);
}