function invite_invite_insert in Invite 7.4
Implements hook_insert().
Parameters
Invite $entity:
File
- ./
invite.module, line 646
Code
function invite_invite_insert($entity) {
if ($entity
->sendInvite()) {
if ($entity->sendNotification) {
drupal_set_message(t('Invitation has been sent.'));
}
}
else {
if ($entity->sendNotification) {
drupal_set_message(t('Failed to send a message.'), 'error');
}
}
}