You are here

function Notifications_Subscription::delete in Notifications 6.4

Same name and namespace in other branches
  1. 7 notifications.subscription.inc \Notifications_Subscription::delete()

Delete from db

Overrides Messaging_Object::delete

File

includes/notifications_subscription.class.inc, line 322
Drupal Notifications Framework - Default class file

Class

Notifications_Subscription
Message destination class

Code

function delete() {
  if ($this
    ->is_instance()) {
    module_invoke_all('notifications_subscription', 'delete', $this);
    db_query("DELETE FROM {notifications_fields} WHERE sid = %d", $this->sid);
    return parent::delete();
  }
}