public function QueueUISystemQueue::delete in Queue UI 7.2
Force the deletion of a specified queue item.
Parameters
integer $item_id: The item id to be deleted.
Return value
TRUE if deletion succeeds, FALSE if deletion fails.
Overrides QueueUIInterface::delete
File
- lib/
QueueUISystemQueue.php, line 125
Class
Code
public function delete($item_id) {
// @TODO - try... catch...
drupal_set_message("Deleted queue item " . $item_id);
db_delete('queue')
->condition('item_id', $item_id)
->execute();
return TRUE;
}