You are here

function notifications_multiple_delete_confirm_submit in Notifications 6.3

Same name and namespace in other branches
  1. 6.4 notifications.manage.inc \notifications_multiple_delete_confirm_submit()
  2. 6 notifications.manage.inc \notifications_multiple_delete_confirm_submit()
  3. 6.2 notifications.manage.inc \notifications_multiple_delete_confirm_submit()
  4. 7 notifications.pages.inc \notifications_multiple_delete_confirm_submit()

Submit multiple delete from

1 string reference to 'notifications_multiple_delete_confirm_submit'
notifications_multiple_delete_confirm in ./notifications.manage.inc
Form for multiple delete. When account passed check that all subscriptions belong to the user account

File

./notifications.manage.inc, line 375
Common functions for bulk management of subscriptions

Code

function notifications_multiple_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    foreach ($form_state['values']['items'] as $id => $value) {
      notifications_delete_subscription($id);
    }
    drupal_set_message(t('The subscriptions have been deleted.'));
  }
  return;
}