You are here

function notifications_cron in Notifications 6.4

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

Implementation of hook_cron()

File

./notifications.module, line 1375
Notifications module

Code

function notifications_cron() {
  if (variable_get('notifications_process_on_cron', TRUE)) {
    if (notifications_queue()
      ->process_cron()) {
      watchdog('notifications', 'Processed notifications in queue: @rows rows, @messages messages sent, @time milliseconds.', notifications_queue()
        ->process_control('results'));
    }
  }
}