function hosting_migrate_platform_submit_batch in Hosting 7.4
Same name and namespace in other branches
- 6.2 migrate/hosting_migrate.batch.inc \hosting_migrate_platform_submit_batch()
- 7.3 migrate/hosting_migrate.batch.inc \hosting_migrate_platform_submit_batch()
Batch callback for platform migration submission.
1 string reference to 'hosting_migrate_platform_submit_batch'
- hosting_migrate_platform_submit in migrate/
hosting_migrate.batch.inc - Implements hook_submit().
File
- migrate/
hosting_migrate.batch.inc, line 216 - 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,
)));
}