function hosting_site_hosting_import_task_rollback in Hosting 7.3
Same name and namespace in other branches
- 5 site/hosting_site.drush.inc \hosting_site_hosting_import_task_rollback()
- 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()
Implements hook_hosting_import_task_rollback().
File
- site/
hosting_site.drush.inc, line 277 - Drush hooks for the Hosting site module.
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);
}
}