You are here

public function Notifications_Event::done in Notifications 7

Processing and sending is done, log or dispose

1 call to Notifications_Event::done()
Notifications_Event::send in ./notifications.event.inc
Send operation. Default will be send to all destinations

File

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

Class

Notifications_Event
Notifications Event class

Code

public function done() {

  // If logging enabled record data, if not just delete
  if (variable_get('notifications_event_log', NOTIFICATIONS_EVENT_LOG)) {
    $this->log = 1;
    $this
      ->record(TRUE);
  }
  else {
    $this
      ->delete();
  }
}