You are here

function commerce_migrate_example_migrate_api in Commerce Migrate 7

Implements hook_migrate_api().

File

commerce_migrate_example/commerce_migrate_example.migrate.inc, line 23
As simple as possible migrations.

Code

function commerce_migrate_example_migrate_api() {
  $info = array(
    'api' => 2,
    'groups' => array(
      'commerce_example' => array(
        'title' => t('Commerce Example Imports'),
      ),
    ),
  );
  $info['migrations']['CommerceExampleProduct'] = array(
    'class_name' => 'CommerceExampleProductMigration',
    'group_name' => 'commerce_example',
  );
  $info['migrations']['CommerceExampleProductDisplay'] = array(
    'class_name' => 'CommerceExampleProductDisplayMigration',
    'group_name' => 'commerce_example',
    'dependencies' => array(
      'CommerceExampleProduct',
    ),
  );
  $info['migrations']['CommerceExampleProductLineItem'] = array(
    'class_name' => 'CommerceExampleProductLineItemMigration',
    'group_name' => 'commerce_example',
    'dependencies' => array(
      'CommerceExampleProduct',
    ),
  );
  $info['migrations']['CommerceExampleOrder'] = array(
    'class_name' => 'CommerceExampleOrderMigration',
    'group_name' => 'commerce_example',
    'dependencies' => array(
      'CommerceExampleProductLineItem',
    ),
  );
  return $info;
}