You are here

public function CommerceKickstartTops::csvcolumns in Commerce Kickstart 7.2

Maps CSV column headers.

Return value

array Array of mappings

1 call to CommerceKickstartTops::csvcolumns()
CommerceKickstartTops::__construct in modules/commerce_kickstart/commerce_kickstart_product/commerce_kickstart_product.migrate.inc
General initialization of a Migration object.

File

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

Class

CommerceKickstartTops
Class CommerceKickstartTops.

Code

public function csvcolumns() {

  // "Title","SKU","Color","Size","Price","Images"
  $columns[0] = array(
    'title',
    'Title',
  );
  $columns[1] = array(
    'sku',
    'SKU',
  );
  $columns[2] = array(
    'color',
    'Color',
  );
  $columns[3] = array(
    'size',
    'Size',
  );
  $columns[4] = array(
    'price',
    'Price',
  );
  $columns[5] = array(
    'images',
    'Images',
  );
  $columns[6] = array(
    'hexadecimal',
    'Hexadecimal',
  );
  return $columns;
}