function MemoryQueue::releaseItem

Overrides DrupalQueueInterface::releaseItem

File

modules/system/system.queue.inc, line 351

Class

MemoryQueue
Static queue implementation.

Code

public function releaseItem($item) {
    if (isset($this->queue[$item->item_id]) && $this->queue[$item->item_id]->expire != 0) {
        $this->queue[$item->item_id]->expire = 0;
        return TRUE;
    }
    return FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.