You are here

public static function Notifications_Event::track_update in Notifications 6.4

2 calls to Notifications_Event::track_update()
Notifications_Queue::process_queue in includes/notifications_queue.class.inc
Process subscriptions queue
Notifications_Queue::process_rows in includes/notifications_queue.class.inc
Process rows given query conditions

File

includes/notifications_event.class.inc, line 439
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Message destination class

Code

public static function track_update() {
  if (!empty(self::$_event_tracker)) {
    foreach (self::$_event_tracker as $eid => $event) {
      if (!$event->counter || $event->incomplete || !empty($event->delete)) {
        $event
          ->delete();
      }
      else {
        $event
          ->update_counter();
      }
      unset(self::$_event_tracker[$eid]);
    }
  }
}