You are here

function notifications_delete_destination in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.module \notifications_delete_destination()

Shorthand function for deleting everything related to a destination

1 call to notifications_delete_destination()
notifications_destination_unsubscribe_form_submit in includes/destination.inc
Unsubscribe form submit

File

./notifications.module, line 836
Notifications module

Code

function notifications_delete_destination($mdid) {
  notifications_delete_subscriptions(array(
    'mdid' => $mdid,
  ));
  Messaging_Destination::delete_multiple(array(
    'mdid' => $mdid,
  ));
}