Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Decouple Install from Site Creation #4

Open
wants to merge 8 commits into
base: 7.x-3.x
Choose a base branch
from
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