Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Added support for multiple source migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro committed Jul 16, 2014
1 parent c833eaa commit 7e3bd09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/migrate_default_content.migrate.base.inc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ abstract class defaultBaseMigration extends Migration {
if (empty($migrate) || !$migrate instanceof MigrateFieldMapping) {
$migrate = $this->addFieldMapping($key, $key, FALSE);
}
$migrate->sourceMigration(array($value['source_migration']));
$separator = !empty($value['separator']) ? $value['separator'] : '|';
$source_migration = explode($separator, $value['source_migration']);
$migrate->sourceMigration($source_migration);
}
}

Expand Down

0 comments on commit 7e3bd09

Please sign in to comment.