function simplenews_subscription_multiple_delete_confirm_submit in Simplenews 6
Same name and namespace in other branches
- 5 simplenews.module \simplenews_subscription_multiple_delete_confirm_submit()
- 6.2 includes/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 ./
simplenews.admin.inc - Menu callback: Delete multiple subscriptions.
File
- ./
simplenews.admin.inc, line 364 - 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 '';
}