You are here

function notifications_destination_unsubscribe_form_submit in Notifications 6.4

Unsubscribe form submit

File

includes/destination.inc, line 274
Destination management

Code

function notifications_destination_unsubscribe_form_submit($form, $form_state) {
  $destination = $form_state['values']['destination'];
  notifications_delete_destination($destination->mdid);
  drupal_set_message(t('The destination and all its subscriptions have been deleted.'));
}