You are here

function hosting_task_load in Hosting 6.2

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

Implementation of hook_load().

File

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

Code

function hosting_task_load($node) {
  $additions = db_fetch_object(db_query('SELECT task_type, executed, delta, rid, task_status FROM {hosting_task} WHERE vid = %d', $node->vid));
  $result = db_query("SELECT name, value FROM {hosting_task_arguments} WHERE vid=%d", $node->vid);
  if ($result) {
    while ($arg = db_fetch_object($result)) {
      $additions->task_args[$arg->name] = $arg->value;
    }
  }
  return $additions;
}