function notifications_exit in Notifications 6.2
Same name and namespace in other branches
- 5 notifications.module \notifications_exit()
- 6.4 notifications.module \notifications_exit()
- 6 notifications.module \notifications_exit()
- 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 526 - 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,
));
}
}
}