You are here

function newsletter_form_delete_draft in Newsletter 7

Menu callback; delete a custom newsletter draft.

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

File

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

Code

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