Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file example_d2d.migrate.inc
- */
- /**
- * Implements hook_migrate_api().
- */
- function example_d2d_migrate_api(){
- /**
- * Declare the api version and migration group.
- */
- $api = array(
- 'api' => 2,
- 'groups' => array(
- 'content_migration' => array(
- 'title' => t('Migrate content within Drupal'),
- ),
- 'migrations' => array(),
- ),
- );
- $common_arguments = array(
- 'source_connection' => 'legacy',
- 'source_version' => 6,
- 'group_name' => 'content_migration',
- );
- $node_arguments = array(
- 'news' => array(
- 'class_name' => 'MOHAAMapsMigration',
- 'description' => t('Migration of aaaamohaamaps to mohaa_maps'),
- 'source_type' => 'aaaamohaamaps',
- 'destination_type' => 'mohaa_maps',
- ),
- );
- foreach ($node_arguments as $migration_name => $arguments) {
- $arguments = array_merge_recursive($arguments, $common_arguments);
- $api['migrations'][$migration_name] = $arguments;
- }
- return $api;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement