You are here

function location_migrate_fields_location in Migrate Extras 6

Implementation of hook_migrate_fields().

1 call to location_migrate_fields_location()
location_user_migrate_fields_location_user in ./location_user.migrate.inc
Implementation of hook_migrate_fields().

File

./location.migrate.inc, line 20
Integrates location module with the migrate module

Code

function location_migrate_fields_location($type) {
  $fields = array(
    '[lid]' => t('Location ID'),
    // Primary Key: Unique location ID.

    //'locpick' => t('Location Chosen By User?'),
    'nid' => t('NID'),
    // nid
    'vid' => t('VID'),
    // vid

    //'uid' => t('User ID'),  only used for location_user? (manual ones have uid of 0)
    'genid' => t('Generic reference key'),
    // Generic reference key.
    'name' => t('Location Name'),
    // Place Name.
    'street' => t('Street Address'),
    // Street address, line 1.
    'additional' => t('Additonal info'),
    // Street address, line 2.
    'city' => t('City'),
    // City.
    'province' => t('Province/State'),
    // State / Province code.
    'postal_code' => t('Postal Code'),
    // Postal / ZIP code.
    'country' => t('Country (2 letter code)'),
    // Two letter ISO country code.
    'latitude' => t('Latitude'),
    // Location latitude (decimal degrees).
    'longitude' => t('Longitude'),
    // Location longitude (decimal degrees).
    'source' => t('Source'),
    // Source of the latitude and longitude data (Geocoder, user entered, invalid, etc.)
    'is_primary' => t('Primary Location? (depricated)'),
    // Is this the primary location of an object? (unused, civicrm legacy field?)
    'inhibit_geocode' => t('Inhibit Geocoding?'),
  );
  return $fields;
}