You are here

function notifications_exit in Notifications 6.3

Same name and namespace in other branches
  1. 5 notifications.module \notifications_exit()
  2. 6.4 notifications.module \notifications_exit()
  3. 6 notifications.module \notifications_exit()
  4. 6.2 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 527
Notifications module

Code

function notifications_exit() {
  if ($events = notifications_send_immediate()) {
    require_once drupal_get_path('module', 'notifications') . '/notifications.cron.inc';
    foreach ($events as $eid) {
      notifications_process_rows(array(
        'cron' => 1,
        'eid' => $eid,
        'send_interval' => 0,
      ));
    }
  }
}