Skip to content

Instantly share code, notes, and snippets.

View bitamar's full-sized avatar

Itamar Shapira Bar-Lev bitamar

View GitHub Profile
@bitamar
bitamar / gist:4977514
Created February 18, 2013 13:47
garmentbox_migrate.migrate.field_collection.inc
<?php
abstract class garmentboxFieldCollectionMigration extends Migration {
public function __construct() {
parent::__construct();
$this->description = t('Import @bundle field collections from CSV file.', array('@bundle' => $this->bundle));
// Create a map object for tracking the relationships between source rows
$key = array(