function SystemQueue::numberOfItems

File

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

Class

SystemQueue
Default queue implementation.

Code

public function numberOfItems() {
    return db_query('SELECT COUNT(item_id) FROM {queue} WHERE name = :name', array(
        ':name' => $this->name,
    ))
        ->fetchField();
}

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