You are here

function hosting_task_count in Hosting 5

Same name and namespace in other branches
  1. 6.2 task/hosting_task.module \hosting_task_count()
  2. 7.4 task/hosting_task.module \hosting_task_count()
  3. 7.3 task/hosting_task.module \hosting_task_count()

Return the amount of items still in the queue

1 call to hosting_task_count()
hosting_hosting_queues in ./hosting.queues.inc
Implementation of hook_hosting_queues

File

task/hosting_task.module, line 182
Web server node type is defined here.

Code

function hosting_task_count() {
  return db_result(db_query("SELECT COUNT(nid) FROM {hosting_task_queue} q WHERE q.status = 1"));
}