function migrate_ui_wizard_migrate_submit in Migrate 7.2
Submit handler for the "Save settings and import" button. Register the migrations that were (implicitly) defined along the way, run the import, and redirect to the Migrate dashboard.
1 string reference to 'migrate_ui_wizard_migrate_submit'
- MigrateUIWizard::form in migrate_ui/
migrate_ui.wizard.inc - Build the form for the current step.
File
- migrate_ui/
migrate_ui.wizard.inc, line 113 - Migration wizard framework.
Code
function migrate_ui_wizard_migrate_submit($form, &$form_state) {
/** @var MigrateUIWizard $wizard */
$wizard = $form_state['wizard'];
$wizard
->formSaveSettings();
$wizard
->formPerformImport();
$form_state['redirect'] = 'admin/content/migrate/groups/' . $wizard
->getGroupName();
}