You are here

function invite_resend in Invite 7.2

Same name and namespace in other branches
  1. 5.2 invite.module \invite_resend()
  2. 6.2 invite.module \invite_resend()
  3. 7.4 includes/invite.pages.inc \invite_resend()

Menu callback; resend an expired invite.

Parameters

$invite: An invitate object.

1 string reference to 'invite_resend'
invite_menu in ./invite.module
Implements hook_menu().

File

./invite.pages.inc, line 143
Page callbacks for invite module.

Code

function invite_resend($invite) {
  global $user;

  // Inviter must match current user and invitation must have expired.
  if ($invite->uid == $user->uid && $invite->expiry < REQUEST_TIME && $invite->joined == 0 && $invite->canceled == 0) {
    return drupal_get_form('invite_form', 'page', $invite);
  }
  return MENU_ACCESS_DENIED;
}