You are here

public static function Notifications_Event::process_immediate in Notifications 6.4

Process events stored for immediate sending

This will be called from notifications_exit() when the event API is loaded

1 call to Notifications_Event::process_immediate()
notifications_exit in ./notifications.module
Implementation of hook_exit()

File

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

Class

Notifications_Event
Message destination class

Code

public static function process_immediate() {
  if ($events = self::send_immediate()) {
    foreach ($events as $event) {
      notifications_queue()
        ->process_rows(array(
        'cron' => 1,
        'eid' => $event->eid,
        'send_interval' => 0,
      ));
    }
  }
}