You are here

function notifications_exit in Notifications 6.4

Same name and namespace in other branches
  1. 5 notifications.module \notifications_exit()
  2. 6 notifications.module \notifications_exit()
  3. 6.2 notifications.module \notifications_exit()
  4. 6.3 notifications.module \notifications_exit()

Implementation of hook_exit()

This is where the immediate sending is done if enabled, so we are sure all other modules have finished node processing when node update.

File

./notifications.module, line 619
Notifications module

Code

function notifications_exit() {

  // We don't load the function if not loaded, which means no events were triggered
  if (class_exists('Notifications_Event', FALSE)) {
    Notifications_Event::process_immediate();
  }
}