You are here

function example_modify_invite in Invite 7.2

Modify an invite.

File

./invite.api.php, line 140
API documentation for Invite module.

Code

function example_modify_invite() {

  // Fetch the invite.
  $invite = invite_load($reg_code);

  // Modify parameters as necessary.
  $invite->expiry = REQUEST_TIME + (60 * 60 * 24 + 7);

  // Save it.
  invite_save($invite);
}