function invite_resend in Invite 6.2
Same name and namespace in other branches
- 5.2 invite.module \invite_resend()
- 7.4 includes/invite.pages.inc \invite_resend()
- 7.2 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 - Implementation of hook_menu().
File
- ./
invite.module, line 1313 - Allows your users to send and track invitations to join your site.
Code
function invite_resend($invite) {
global $user;
// Inviter must match current user and invitation must have expired.
if ($invite->uid == $user->uid && $invite->expiry < time()) {
return drupal_get_form('invite_form', 'page', $invite);
}
return drupal_access_denied();
}