function hosting_task_load in Hosting 5
Same name and namespace in other branches
- 6.2 task/hosting_task.module \hosting_task_load()
- 7.4 task/hosting_task.module \hosting_task_load()
- 7.3 task/hosting_task.module \hosting_task_load()
Implementation of hook_load().
File
- task/
hosting_task.module, line 258 - Web server node type is defined here.
Code
function hosting_task_load($node) {
$additions = db_fetch_object(db_query('SELECT task_type, executed, task_status, rid, q.status as queued FROM {hosting_task} t LEFT JOIN {hosting_task_queue} q ON t.nid=q.nid WHERE vid = %d', $node->vid));
$result = db_query("SELECT name, value FROM {hosting_task_arguments} WHERE vid=%d", $node->vid);
if (db_num_rows($result)) {
while ($arg = db_fetch_object($result)) {
$additions->task_args[$arg->name] = $arg->value;
}
}
return $additions;
}