You are here

public function CommerceKickstartNode::csvcolumns in Commerce Kickstart 7.2

Same name in this branch
  1. 7.2 modules/commerce_kickstart/commerce_kickstart_product/commerce_kickstart_product.migrate.inc \CommerceKickstartNode::csvcolumns()
  2. 7.2 modules/commerce_kickstart/commerce_kickstart_lite_product/commerce_kickstart_lite_product.migrate.inc \CommerceKickstartNode::csvcolumns()

Maps CSV column headers.

Return value

array Array of mappings

2 calls to CommerceKickstartNode::csvcolumns()
CommerceKickstartNode::__construct in modules/commerce_kickstart/commerce_kickstart_product/commerce_kickstart_product.migrate.inc
General initialization of a Migration object.
CommerceKickstartNode::__construct in modules/commerce_kickstart/commerce_kickstart_lite_product/commerce_kickstart_lite_product.migrate.inc
General initialization of a Migration object.

File

modules/commerce_kickstart/commerce_kickstart_product/commerce_kickstart_product.migrate.inc, line 656
Migrations for commerce_kickstart_product.

Class

CommerceKickstartNode
Class CommerceKickstartNode.

Code

public function csvcolumns() {
  $columns[0] = array(
    'title',
    'Title',
  );
  $columns[1] = array(
    'description',
    'Description',
  );
  $columns[2] = array(
    'collection',
    'Collection',
  );
  $columns[3] = array(
    'category',
    'Category',
  );
  $columns[4] = array(
    'gender',
    'Gender',
  );
  $columns[5] = array(
    'brand',
    'Brand',
  );
  $columns[6] = array(
    'sku',
    'SKU',
  );
  $columns[7] = array(
    'product',
    'Product',
  );
  return $columns;
}