You are here

function mailing_list_email_delete_confirm in Mailing List 6

E-mail deletion form.

1 string reference to 'mailing_list_email_delete_confirm'
mailing_list_menu in ./mailing_list.module
Implementation of hook_menu().

File

./mailing_list.admin.inc, line 265
Mailing list admin UI.

Code

function mailing_list_email_delete_confirm($form_state, $list, $email) {
  if (user_access('administer mailing lists')) {
    $name = mailing_list_email_get_name($email);
    $form['mlid'] = array(
      '#type' => 'value',
      '#value' => $list->mlid,
    );
    $form['eid'] = array(
      '#type' => 'value',
      '#value' => $email->eid,
    );
    $form['name'] = array(
      '#type' => 'value',
      '#value' => $name,
    );
    $output = confirm_form($form, t('Are you sure you want to delete the e-mail for %name?', array(
      '%name' => $name,
    )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/mailing-list/' . $list->mlid);
  }
  return $output;
}