public function MigrateUIWizard::formSaveSettings in Migrate 7.2
Take the information we've accumulated throughout the wizard, and create the Migrations to perform the import.
File
- migrate_ui/
migrate_ui.wizard.inc, line 458 - Migration wizard framework.
Class
- MigrateUIWizard
- The base class for migration wizards. Extend this class to implement a wizard UI for importing into Drupal from a given source format (Drupal, WordPress, etc.).
Code
public function formSaveSettings() {
MigrateGroup::register($this->groupName, $this->groupTitle, $this->groupArguments);
$info['arguments']['group_name'] = $this->groupName;
foreach ($this->migrations as $machine_name => $info) {
// Call the right registerMigration implementation. Note that this means
// that classes that override registerMigration() must handle registration
// themselves, they cannot leave it to us and expect their extension to be
// called.
if (is_subclass_of($info['class_name'], 'Migration')) {
Migration::registerMigration($info['class_name'], $machine_name, $info['arguments']);
}
else {
MigrationBase::registerMigration($info['class_name'], $machine_name, $info['arguments']);
}
}
menu_rebuild();
}