You are here

function simplenews_subscription_multiple_delete_confirm_submit in Simplenews 6.2

Same name and namespace in other branches
  1. 5 simplenews.module \simplenews_subscription_multiple_delete_confirm_submit()
  2. 6 simplenews.admin.inc \simplenews_subscription_multiple_delete_confirm_submit()
1 string reference to 'simplenews_subscription_multiple_delete_confirm_submit'
simplenews_subscription_multiple_delete_confirm in includes/simplenews.admin.inc
Menu callback: Delete multiple subscriptions.

File

includes/simplenews.admin.inc, line 450
Newsletter admin, subscription admin, simplenews settings

Code

function simplenews_subscription_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['snids'] as $snid => $value) {
      simplenews_delete_subscription($snid);
    }
    drupal_set_message(t('The subscriptions have been deleted.'));
  }
  return '';
}