function invite_resend in Invite 5.2
Same name and namespace in other branches
- 6.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
$code: Registration code of invitate to resend.
1 string reference to 'invite_resend'
- invite_menu in ./
invite.module - Implementation of hook_menu().
File
- ./
invite.module, line 1226 - Allows your users to send and track invitations to join your site.
Code
function invite_resend($code) {
global $user;
$invite = invite_load($code);
// 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);
}
else {
drupal_access_denied();
}
}