function hosting_task_status in Hosting 5
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_status()
- 7.4 task/hosting_task.module \hosting_task_status()
- 7.3 task/hosting_task.module \hosting_task_status()
1 call to hosting_task_status()
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'];
}