You are here

function mailing_list_delete_confirm in Mailing List 6

Same name and namespace in other branches
  1. 7 mailing_list.admin.inc \mailing_list_delete_confirm()

Mailing list deletion form.

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

File

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

Code

function mailing_list_delete_confirm($form_state, $list) {
  if (user_access('administer mailing lists')) {
    $form['mlid'] = array(
      '#type' => 'value',
      '#value' => $list->mlid,
    );
    $form['name'] = array(
      '#type' => 'value',
      '#value' => $list->name,
    );
    $output = confirm_form($form, t('Are you sure you want to delete mailing list %name? All e-mails in this list will be deleted too.', array(
      '%name' => $list->name,
    )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/mailing-list');
  }
  return $output;
}