2, 'groups' => array( 'legacy' => array( 'title' => t('Import from legacy system'), // Default format for all content migrations 'default_format' => 'filtered_html', ), ), 'migrations' => array( 'ExampleUser' => array( 'class_name' => 'ExampleUserMigration', 'group_name' => 'legacy', 'default_role' => 'member', // Added to constructor $arguments ), 'ExampleNode' => array( 'class_name' => 'ExampleNodeMigration', 'group_name' => 'legacy', 'default_uid' => 1, // Added to constructor $arguments 'disable_hooks' => array( // Improve migration performance, and prevent accidental emails. 'node_insert' => array( 'expensive_module', 'email_notification_module', ), 'node_update' => array( 'expensive_module', 'email_notification_module', ), ), ), ), ); return $api; } /** * Alter information from all implementations of hook_migrate_api(). * * @param array $info * An array of results from hook_migrate_api(), keyed by module name. * * @see hook_migrate_api(). */ function hook_migrate_api_alter(array &$info) { // Override the class for another module's migration - say, to add some // additional preprocessing in prepareRow(). if (isset($info['MODULE_NAME']['migrations']['ExampleNode'])) { $info['MODULE_NAME']['migrations']['ExampleNode']['class_name'] = 'MyBetterExampleNodeMigration'; } } /** * Provides text to be displayed at the top of the dashboard page (migrate_ui). * * @return * Translated text for display on the dashboard page. */ function hook_migrate_overview() { return t('

Listed below are all the migration processes defined for migration of our old site to Drupal. Open issues applying to specific migrations can be viewed by clicking the migration name. Also, details on how each migration will behave when incrementally migrated are provided.

Open migration tickets

'); }