You are here

function hosting_server_post_hosting_verify_task in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 server/hosting_server.drush.inc \hosting_server_post_hosting_verify_task()
  2. 7.4 server/hosting_server.drush.inc \hosting_server_post_hosting_verify_task()

Resave the target node to trigger reverifications.

File

server/hosting_server.drush.inc, line 71
:Drush hooks for the Hosting server module.

Code

function hosting_server_post_hosting_verify_task($task, $data) {
  if ($task->ref->type == 'server') {
    $task->ref->no_verify = TRUE;

    // Set verified flag on server, to let it know it has been checked.
    $task->ref->verified = REQUEST_TIME;
    $task->ref->server_status = HOSTING_SERVER_ENABLED;
    node_save($task->ref);
  }
}