You are here

function hosting_server_post_hosting_verify_task in Hostmaster (Aegir) 6

Resave the target node to trigger reverifications.

File

modules/hosting/server/hosting_server.drush.inc, line 47

Code

function hosting_server_post_hosting_verify_task($task, $data) {
  $task->ref->no_verify = TRUE;
  node_save($task->ref);

  // Verify the platforms on this server
  $query = db_query("SELECT nid FROM {hosting_platform} WHERE status <> %d AND web_server = %d", HOSTING_PLATFORM_DELETED, $task->ref->nid);
  while ($nid = db_fetch_object($query)) {
    hosting_add_task($nid->nid, 'verify');
  }
}