You are here

function notifications_queue_delete in Notifications 6.2

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

Delete rows from subscriptions queue

Note: Handle with care if no params may delete all rows

See also

notifications_queue_query()

2 calls to notifications_queue_delete()
notifications_queue_clean in ./notifications.module
Clean queue for a user and update event tracker
notifications_queue_done in ./notifications.cron.inc
Mark queue rows as done

File

./notifications.cron.inc, line 706

Code

function notifications_queue_delete($params) {
  $query = notifications_queue_query($params);
  db_query("DELETE FROM {notifications_queue} WHERE " . implode(' AND ', $query['where']), $query['args']);
}