function hosting_server_post_hosting_delete_task in Hosting 7.3
Same name and namespace in other branches
- 7.4 server/hosting_server.drush.inc \hosting_server_post_hosting_delete_task()
Implements hook_hosting_post_DELETE().
File
- server/
hosting_server.drush.inc, line 86 - :Drush hooks for the Hosting server module.
Code
function hosting_server_post_hosting_delete_task($task, $data) {
$task->ref->server_status = HOSTING_SERVER_DELETED;
$task->ref->no_verify = TRUE;
$task->ref->services = array();
node_save($task->ref);
hosting_context_delete($task->ref->nid);
}