7.x system.queue.inc DrupalQueueInterface::deleteItem($item)

Delete a finished item from the queue.

Parameters

$item: The item returned by DrupalQueueInterface::claimItem().

2 methods override DrupalQueueInterface::deleteItem()
MemoryQueue::deleteItem in modules/system/system.queue.inc
Delete a finished item from the queue.
SystemQueue::deleteItem in modules/system/system.queue.inc
Delete a finished item from the queue.

File

modules/system/system.queue.inc, line 156
Queue functionality.

Class

DrupalQueueInterface

Code

public function deleteItem($item);

Comments

CarlHinton’s picture

This is the code

db_delete('queue')
  ->condition('item_id', $item->item_id)
  ->execute();

This is the case for system queue only.