You are here

function ginvite_by_mail_delete_form in Group 7

Group e-mail invite deletion form.

1 string reference to 'ginvite_by_mail_delete_form'
ginvite_menu in modules/ginvite/ginvite.router.inc
Implements hook_menu().

File

modules/ginvite/admin/ginvite.inc, line 145
Group member invite admin callback and pages.

Code

function ginvite_by_mail_delete_form($form, &$form_state, Group $group, $iid) {
  $data = db_select('group_invite', 'gi')
    ->fields('gi')
    ->condition('iid', $iid)
    ->execute()
    ->fetch();
  $message = t('Are you sure you want to delete the invitation for %mail?');
  $replace = array(
    '%mail' => $data->mail,
  );
  $redirect = "group/{$group->gid}/invite/mail-list";
  $description = t('Keep in mind the recipient has already received an e-mail.');
  return confirm_form($form, t($message, $replace), $redirect, $description);
}