public function __construct()
 {
     parent::__construct();
     // Map fields that don't need extra definitions.
     $field_names = array('field_location', 'field_contract_id', 'field_place_locality', 'field_place_address', 'field_place_description', 'field_meter_code', 'field_meter_serial', 'country', 'field_last_processed', 'field_max_frequency');
     $this->addSimpleMappings($field_names);
     $this->addFieldMapping(OG_AUDIENCE_FIELD, 'account')->sourceMigration('NegawattAccountMigrate');
     $this->addFieldMapping(OG_ACCESS_FIELD)->defaultValue(TRUE);
     $this->addFieldMapping('uid')->defaultValue('1');
     $this->addFieldMapping(OG_VOCAB_FIELD, OG_VOCAB_FIELD)->sourceMigration('NegawattMeterCategoryTermsMigrate')->separator('|');
 }
 public function __construct()
 {
     parent::__construct();
     // Map fields that don't need extra definitions.
     $field_names = array('field_location', 'field_account_type', 'field_geo_zoom');
     $this->addSimpleMappings($field_names);
     $this->addFieldMapping(OG_GROUP_FIELD)->defaultValue(TRUE);
     $this->addFieldMapping(OG_ACCESS_FIELD)->defaultValue(TRUE);
     $this->addFieldMapping('uid')->defaultValue('1');
     $this->addFieldMapping('field_logo', 'field_logo');
     $this->addFieldMapping('field_logo:file_replace')->defaultValue(FILE_EXISTS_REPLACE);
     $this->addFieldMapping('field_logo:source_dir')->defaultValue(drupal_get_path('module', 'negawatt_migrate') . '/images');
 }