function newsletter_subscriber_delete in Newsletter 7
Same name and namespace in other branches
- 7.2 modules/subscriber/newsletter_subscriber.module \newsletter_subscriber_delete()
Menu callback; delete subscribers.
1 string reference to 'newsletter_subscriber_delete'
- newsletter_menu in ./
newsletter.module - Implements hook_menu().
File
- includes/
newsletter.admin.inc, line 1117 - Admin page callbacks for the newsletter module.
Code
function newsletter_subscriber_delete($form, &$form_state, $subscriber) {
$form['id'] = array(
'#type' => 'hidden',
'#value' => $subscriber->nsid,
);
$output = t('Are you sure you want to delete the following newsletter subscriber?');
$output .= '<ul>';
$output .= '<li>' . check_plain($subscriber->email) . '</li>';
$output .= '</ul>';
$output .= t('This action cannot be undone.');
return confirm_form($form, t('Delete the following?'), 'admin/config/media/newsletter/subscribers', filter_xss($output));
}