diff --git a/clone/hosting_clone.drush.inc b/clone/hosting_clone.drush.inc index de7d7e9..ca1ee53 100644 --- a/clone/hosting_clone.drush.inc +++ b/clone/hosting_clone.drush.inc @@ -41,7 +41,7 @@ function hosting_clone_post_hosting_clone_task($task, $data) { $target = $task->task_args['target_platform']; $clone = new stdClass(); # copy some of the settings of the cloned site ($task->ref) to $clone - foreach (array('type', 'status', 'uid', 'comment', 'promote', 'moderate', 'sticky', 'name', 'format', 'client', 'db_server', 'profile', 'site_status', 'site_language') as $field) { + foreach (array('type', 'status', 'uid', 'comment', 'promote', 'sticky', 'name', 'client', 'db_server', 'profile', 'site_status', 'site_language') as $field) { $clone->$field = $task->ref->$field; } $clone->title = strtolower(trim($task->task_args['new_uri'])); @@ -56,6 +56,13 @@ function hosting_clone_post_hosting_clone_task($task, $data) { $clone->db_server = $task->task_args['new_db_server']; } + // Fields supplied via task_args + foreach (array('https_enabled', 'https_client_authentication_enabled', 'https_key') as $field) { + if (isset($task->task_args[$field])) { + $clone->$field = $task->task_args[$field]; + } + } + $profile = hosting_package_instance_load(array( 'i.rid' => $target, 'p.short_name' => $data['context']['profile'],