function hosting_site_hosting_import_task_rollback in Hosting 5
Same name and namespace in other branches
- 6.2 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()
- 7.4 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()
- 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 145
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);
}
}