You are here

function notifications_destination_delete_confirm in Notifications 6.4

Form for unsubscription confirmation

It works for both single subscription or account (all subscriptions)

File

includes/destination.inc, line 234
Destination management

Code

function notifications_destination_delete_confirm($form_state, $destination, $options = array()) {

  // Pass on destination values and display them
  $form = notifications_destination_subform($destination, $options);
  return confirm_form($form, t('Are you sure you want to delete this destination and all its subscriptions?'), isset($_GET['destination']) ? $_GET['destination'] : '', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}