function invite_resend in Invite 7.4
Same name and namespace in other branches
- 5.2 invite.module \invite_resend()
- 6.2 invite.module \invite_resend()
- 7.2 invite.pages.inc \invite_resend()
Menu callback; resend an expired invite.
Parameters
Invite $invite: An invite object.
Return value
array renderable array, representing a page.
1 string reference to 'invite_resend'
- invite_menu in ./
invite.module - Implements hook_menu().
File
- includes/
invite.pages.inc, line 102
Code
function invite_resend($invite) {
if ($invite
->sendInvite()) {
drupal_set_message(t('Invitation has been successfully resent.'));
return array(
'invite' => entity_view('invite', array(
entity_id('invite', $invite) => $invite,
), 'full'),
);
}
else {
return MENU_NOT_FOUND;
}
}