You are here

function notifications_queue_done in Notifications 6.2

Same name and namespace in other branches
  1. 6 notifications.cron.inc \notifications_queue_done()
  2. 6.3 notifications.cron.inc \notifications_queue_done()

Mark queue rows as done

Either log, if logging enabled, or delete

3 calls to notifications_queue_done()
NotificationsBasicTests::testNotificationsQueryBuilder in tests/notifications_api.test
Test query builder
notifications_process_queue in ./notifications.cron.inc
Process subscriptions queue
notifications_process_rows in ./notifications.cron.inc
Process rows given query conditions

File

./notifications.cron.inc, line 674

Code

function notifications_queue_done($params) {
  if (variable_get('notifications_log', 0)) {
    notifications_queue_update($params, array(
      'cron' => 0,
      'sent' => time(),
    ));
  }
  else {
    notifications_queue_delete($params);
  }
}