You are here

function hosting_task_status in Hosting 5

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

File

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

Code

function hosting_task_status($filter_by, $filter_value, $type = 'install') {
  $args[] = 'task';
  $args[] = $type;
  $cond = '';
  if ($filter_by && $filter_value) {
    $cond = ' AND t.' . $filter_by . ' = %d';
    $args[] = $filter_value;
  }
  $result = db_fetch_array(db_query("SELECT q.status AS status FROM {node} n left join {hosting_task_queue} q on n.nid=q.nid left join {hosting_task} t on n.vid=t.vid WHERE n.type='%s' AND t.task_type='%s' " . $cond, $args));
  return $result['status'];
}