function mailing_list_delete_confirm in Mailing List 7
Same name and namespace in other branches
- 6 mailing_list.admin.inc \mailing_list_delete_confirm()
Mailing list deletion form.
@todo: D7 Upgrade this/
1 string reference to 'mailing_list_delete_confirm'
- mailing_list_menu in ./
mailing_list.module - Implement hook_menu().
File
- ./
mailing_list.admin.inc, line 278 - Mailing list admin UI.
Code
function mailing_list_delete_confirm($form, $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/structure/mailing-list');
}
return $output;
}