public function ComputingQueue::deleteItem in Drupal Computing 7.2
Delete a finished item from the queue.
Parameters
$item: The item returned by DrupalQueueInterface::claimItem().
Overrides DrupalQueueInterface::deleteItem
File
- ./
computing.queue.inc, line 53
Class
- ComputingQueue
- This file provides Queue support, an extra layer to handle computing records. The only benefit here is to provide an interface for Queue, perhaps people don't need it.
Code
public function deleteItem($item) {
// we'll not physically delete the item, but just mark the item as "ABD".
if (!is_object($item)) {
$item = (object) $item;
}
// this is to follow the definition in the interface.
if (computing_update_field($item->id, 'status', 'ABD')) {
return computing_load($item->id);
}
else {
return FALSE;
}
}