rocketship_core-8.x-2.0-alpha11/modules/rocketship_content/rocketship_content.module
modules/rocketship_content/rocketship_content.module
<?php
/**
* @file
* Main module file.
*/
/**
* Implements hook_migration_plugins_alter().
*/
function rocketship_content_migration_plugins_alter(&$definitions) {
$path = drupal_get_path('module', 'rocketship_content');
$definitions['rocketship_pages']['source']['path'] = $path . $definitions['rocketship_pages']['source']['path'];
$definitions['rc_simple_header']['source']['path'] = $path . $definitions['rc_simple_header']['source']['path'];
$definitions['rc_text_main_p']['source']['path'] = $path . $definitions['rc_text_main_p']['source']['path'];
}
/**
* Implements hook_module_implements_alter().
*
* Make sure we go after migrate_plus.
*/
function rocketship_content_module_implements_alter(&$implementations, $hook) {
if ($hook == 'migration_plugins_alter') {
$group = $implementations['rocketship_content'];
unset($implementations['rocketship_content']);
$implementations['rocketship_content'] = $group;
}
}