function notifications_exit in Notifications 6
Same name and namespace in other branches
- 5 notifications.module \notifications_exit()
- 6.4 notifications.module \notifications_exit()
- 6.2 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 469 - Notifications module
Code
function notifications_exit() {
global $notifications_send_immediate;
if (!empty($notifications_send_immediate)) {
require_once drupal_get_path('module', 'notifications') . '/notifications.cron.inc';
foreach ($notifications_send_immediate as $eid) {
notifications_process_rows(array(
'cron' => 1,
'eid' => $eid,
'send_interval' => 0,
));
}
}
}