function invite_delete_submit in Invite 5
Submit handler to delete an invitation.
File
- ./
invite.module, line 1102 - Allows your users to send and track invitations to join your site.
Code
function invite_delete_submit($form_id, $form_values) {
$invite = $form_values['invite'];
db_query("DELETE FROM {invite} WHERE reg_code = '%s'", $invite->reg_code);
drupal_set_message(t('Invitation to %email has been withdrawn.', array(
'%email' => $invite->email,
)));
// Notify other modules
$args = array(
'inviter' => $invite->inviter,
'email' => $invite->email,
);
module_invoke_all('invite', 'cancel', $args);
drupal_goto('invite/list');
}