You are here

function example_create_invite in Invite 7.2

Create an invite.

File

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

Code

function example_create_invite() {

  // Create an empty invite.
  $invite = invite_create();

  // Set parameters.
  $invite->email = $email;
  $invite->data = array(
    'subject' => $subject,
    'message' => $message,
  );

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