You are here

function notifications_delete_destination in Notifications 7

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

Shorthand function for deleting everything related to a destination

File

./notifications.module, line 826
Notifications module

Code

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