You are here

function hosting_migrate_platform_submit_batch in Hostmaster (Aegir) 6

Batch callback for platform migration submission.

1 string reference to 'hosting_migrate_platform_submit_batch'
hosting_migrate_platform_submit in modules/hosting/migrate/hosting_migrate.batch.inc
Implements hook_submit().

File

modules/hosting/migrate/hosting_migrate.batch.inc, line 203
Implemented batch migration of sites.

Code

function hosting_migrate_platform_submit_batch($site_id, $target_platform, $url, $platform_task_vid) {
  $site = node_load($site_id);
  hosting_add_task($site_id, 'migrate', array(
    'target_platform' => $target_platform,
    'new_uri' => $url,
    'new_db_server' => $site->db_server,
  ));
  hosting_task_log($platform_task_vid, 'success', t("Migrate task for !url created", array(
    '!url' => $url,
  )));
}