Skip to content
6 changes: 6 additions & 0 deletions site/hosting_site.drush.inc
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ function hosting_site_post_hosting_verify_task($task, $data) {
if ($data['context']['cron_key']) {
$task->ref->cron_key = $data['context']['cron_key'];
}

// If site status is not explicity disabled or deleted, set to enabled.
if ($task->ref->site_status != HOSTING_SITE_DISABLED && $task->ref->site_status != HOSTING_SITE_DELETED) {
$task->ref->site_status = HOSTING_SITE_ENABLED;
}

node_save($task->ref);

$context = $data['context'];
Expand Down
2 changes: 1 addition & 1 deletion site/hosting_site.module
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function hosting_site_hosting_tasks() {
$tasks['site']['install'] = array(
'title' => t('Install'),
'description' => t('Install a site'),
'hidden' => TRUE,
// 'hidden' => TRUE,
'provision_save' => TRUE,
);

Expand Down
2 changes: 1 addition & 1 deletion site/hosting_site.nodeapi.inc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function hosting_site_node_insert($node) {
hosting_add_task($node->nid, 'import');
}
else {
hosting_add_task($node->nid, 'install');
hosting_add_task($node->nid, 'verify');
}
}
}
Expand Down