You are here

function newsletter_form_delete_newsletter in Newsletter 7

Menu callback; delete a sent custom newsletter from database.

1 string reference to 'newsletter_form_delete_newsletter'
newsletter_menu in ./newsletter.module
Implements hook_menu().

File

includes/newsletter.admin.inc, line 445
Admin page callbacks for the newsletter module.

Code

function newsletter_form_delete_newsletter($form, &$form_state, $newsletter) {
  $form['nnid'] = array(
    '#type' => 'hidden',
    '#value' => $newsletter->nnid,
  );
  $output = t('Are you sure you want to delete this newsletter?');
  $output .= '<br />';
  $output .= t('All statistics associated with this newsletter will be deleted too.');
  $output .= '<br />';
  $output .= t('This action cannot be undone.');
  return confirm_form($form, t('Delete the following?'), 'admin/config/media/newsletter/lists', filter_xss($output));
}