You are here

function hosting_site_post_hosting_import_task in Hosting 6.2

Same name and namespace in other branches
  1. 5 site/hosting_site.drush.inc \hosting_site_post_hosting_import_task()
  2. 7.4 site/hosting_site.drush.inc \hosting_site_post_hosting_import_task()
  3. 7.3 site/hosting_site.drush.inc \hosting_site_post_hosting_import_task()

File

site/hosting_site.drush.inc, line 192

Code

function hosting_site_post_hosting_import_task($task, $data) {
  hosting_import_site($task->ref->nid, $data['context'], $task->ref->platform);
  $packages = $data['context']['packages'];
  hosting_package_sync($packages);
  hosting_package_instance_sync($task->ref->nid, $task->ref->type, $packages);
}