function newsletter_form_delete_draft_submit in Newsletter 7
File
- includes/
newsletter.admin.inc, line 435 - Admin page callbacks for the newsletter module.
Code
function newsletter_form_delete_draft_submit($form, &$form_state) {
$deleted = entity_get_controller('newsletter_newsletter')
->deleteDraft($form_state['values']['nnid']);
$deleted ? drupal_set_message(t('Draft deleted succesfully')) : drupal_set_message(t('Draft failed to delete'), 'error');
}