function hook_invite_send in Invite 7.4
Same name and namespace in other branches
- 7.2 invite.api.php \hook_invite_send()
Sends the invitation.
Called by the Invite::sendInvite() method.
Parameters
Invite $invite: The invitation to send.
1 function implements hook_invite_send()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- invite_by_email_invite_send in modules/
invite_by_email/ invite_by_email.module - Invite Send.
File
- ./
invite.api.php, line 82 - Hooks provided by the Invite.
Code
function hook_invite_send($invite) {
if (!empty($invite
->type_details()->invite_sending_controller['my_module'])) {
global $language;
$entity = entity_metadata_wrapper('invite', $invite);
$params = array(
'invite' => $invite,
'wrapper' => $entity,
);
$from = $entity->inviter->mail
->value();
drupal_mail('my_module', 'invite', $entity->invitee->mail
->value(), $language, $params, $from, TRUE);
}
}