You are here

function notifications_queue_delete in Notifications 5

Same name and namespace in other branches
  1. 6 notifications.cron.inc \notifications_queue_delete()
  2. 6.2 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_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 654

Code

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