diff --git a/site/hosting_site.drush.inc b/site/hosting_site.drush.inc index 88dc891..f2fe65d 100644 --- a/site/hosting_site.drush.inc +++ b/site/hosting_site.drush.inc @@ -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']; diff --git a/site/hosting_site.module b/site/hosting_site.module index 38a9175..56b02a4 100644 --- a/site/hosting_site.module +++ b/site/hosting_site.module @@ -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, ); diff --git a/site/hosting_site.nodeapi.inc b/site/hosting_site.nodeapi.inc index f7dc81f..89b1931 100644 --- a/site/hosting_site.nodeapi.inc +++ b/site/hosting_site.nodeapi.inc @@ -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'); } } }