You are here

function hosting_site_post_hosting_delete_task in Hostmaster (Aegir) 6

implementation of hook_hosting_post_DELETE

File

modules/hosting/site/hosting_site.drush.inc, line 160

Code

function hosting_site_post_hosting_delete_task($task, $data) {
  if ($task->ref->type == 'site') {
    $task->ref->site_status = HOSTING_SITE_DELETED;
    $task->ref->no_verify = TRUE;
    hosting_context_delete($task->ref->nid);
    node_save($task->ref);
  }
}