You are here

function notifications_custom_delete_confirm_submit in Notifications 6.4

Same name and namespace in other branches
  1. 6 notifications_custom/notifications_custom.admin.inc \notifications_custom_delete_confirm_submit()

Process subscription type delete confirm submissions.

File

notifications_custom/notifications_custom.admin.inc, line 310
Custom notifications module (admin features)

Code

function notifications_custom_delete_confirm_submit($form, &$form_state) {
  notifications_custom_delete($form_state['values']['type'], $form_state['values']['subscriptions']);
  $t_args = array(
    '%name' => $form_state['values']['name'],
  );
  drupal_set_message(t('The subscription type %name has been deleted.', $t_args));
  watchdog('notifications', 'Deleted subscription type %name.', $t_args, WATCHDOG_NOTICE);
  $form_state['redirect'] = 'admin/messaging/customsubs';
  return;
}