You are here

function _commerce_kickstart_import in Commerce Kickstart 7.2

BatchAPI callback.

See also

commerce_kickstart_import_content()

1 string reference to '_commerce_kickstart_import'
commerce_kickstart_import_content in ./commerce_kickstart.install
Task callback: return a batch API array with the products to be imported.

File

./commerce_kickstart.install_callbacks.inc, line 204
Contains Batch API callbacks used during installation.

Code

function _commerce_kickstart_import($operation, $type, &$context) {
  $context['message'] = t('@operation', array(
    '@operation' => $type,
  ));
  $migration = Migration::getInstance($operation);
  $migration
    ->processImport();
}