You are here

function hook_migrate_api_alter in Migrate 7.2

Alter information from all implementations of hook_migrate_api().

Parameters

array $info: An array of results from hook_migrate_api(), keyed by module name.

See also

hook_migrate_api().

1 invocation of hook_migrate_api_alter()
migrate_get_module_apis in ./migrate.module
Get a list of modules that support the current migrate API.

File

./migrate.api.php, line 89
Documentation for hooks defined by Migrate.

Code

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';
  }
}