You are here

public static function Notifications_Event::send_immediate in Notifications 6.4

Store / return events for immediate sending

3 calls to Notifications_Event::send_immediate()
Notifications_Event::process_immediate in includes/notifications_event.class.inc
Process events stored for immediate sending
Notifications_Event::trigger in includes/notifications_event.class.inc
Trigger event. Save, run queue query, etc...
notifications_lite_queue_event in notifications_lite/notifications_lite.module
Insert lite notification into queue if we have a valid destination

File

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

Class

Notifications_Event
Message destination class

Code

public static function send_immediate($event = NULL) {
  if ($event) {

    // Store events anyway so they can be accessed through the static variable
    // and other modules can have a peek on what has happened on this request
    self::$_send_immediate[$event->eid] = $event;
  }
  elseif (!empty(self::$_send_immediate)) {
    return self::$_send_immediate;
  }
}