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