function hosting_server_post_hosting_verify_task in Hosting 7.4
Same name and namespace in other branches
- 6.2 server/hosting_server.drush.inc \hosting_server_post_hosting_verify_task()
- 7.3 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);
}
}