You are here

function Notifications_Event::delete in Notifications 7

Delete from db

1 call to Notifications_Event::delete()
Notifications_Event::done in ./notifications.event.inc
Processing and sending is done, log or dispose

File

./notifications.event.inc, line 330
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

function delete() {
  if (!empty($this->eid)) {

    // Inform all modules when we still have an eid, in case they have linked data
    $this
      ->invoke_all('delete');

    // Finally, delete traces in our reference table
    return db_delete('notifications_event')
      ->condition('eid', $this->eid)
      ->execute();
    unset($this->eid);
  }
}