You are here

function hosting_site_hosting_import_task_rollback in Hosting 6.2

Same name and namespace in other branches
  1. 5 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()
  2. 7.4 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()
  3. 7.3 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()

Implementation of the hosting_failed_install hook

File

site/hosting_site.drush.inc, line 232

Code

function hosting_site_hosting_import_task_rollback($task, $data) {
  if ($task->ref->type == 'site') {
    $task->ref->no_verify = TRUE;
    $task->ref->verified = 0;
    $task->ref->site_status = HOSTING_SITE_DISABLED;
    node_save($task->ref);
  }
}