You are here

function getlocations_fields_entity_key_map in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields_entity/getlocations_fields_entity.module \getlocations_fields_entity_key_map()

Helper function that returns getlocations_fields key map array

1 call to getlocations_fields_entity_key_map()
getlocations_fields_entity_getlocations_fields_property_callback in modules/getlocations_fields_entity/getlocations_fields_entity.module
Property callback for getlocations fields.

File

modules/getlocations_fields_entity/getlocations_fields_entity.module, line 47
getlocations_fields_entity.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_fields_entity_key_map() {
  $keys = array(
    'glid' => array(
      'type' => 'integer',
      'label' => t('glid'),
      'description' => t('Getlocations Fields ID field'),
    ),
    'name' => array(
      'type' => 'text',
      'label' => t('Name'),
      'description' => t('Getlocations Fields name field'),
    ),
    'street' => array(
      'type' => 'text',
      'label' => t('Street'),
      'description' => t('GetLocations Fields street field'),
    ),
    'additional' => array(
      'type' => 'text',
      'label' => t('Additional'),
      'description' => t('Getlocations Fields additional field'),
    ),
    'city' => array(
      'type' => 'text',
      'label' => t('City'),
      'description' => t('Getlocations Fields city field'),
    ),
    'province' => array(
      'type' => 'text',
      'label' => t('Province'),
      'description' => t('Getlocations Fields province field'),
    ),
    'postal_code' => array(
      'type' => 'text',
      'label' => t('Postal code'),
      'description' => t('Getlocations Fields postal code field'),
    ),
    'country' => array(
      'type' => 'text',
      'label' => t('Country'),
      'description' => t('Getlocations Fields country field'),
    ),
    'address' => array(
      'type' => 'text',
      'label' => t('Address'),
      'description' => t('Getlocations Fields address field'),
    ),
    'latitude' => array(
      'type' => 'decimal',
      'label' => t('Latitude'),
      'description' => t('Getlocations Fields latitude field'),
    ),
    'longitude' => array(
      'type' => 'decimal',
      'label' => t('Longitude'),
      'description' => t('Getlocations Fields longitude field'),
    ),
    'marker' => array(
      'type' => 'text',
      'label' => t('Marker'),
      'description' => t('Getlocations Fields marker field'),
    ),
  );
  if (getlocations_fields_column_check('data')) {
    $keys['data'] = array(
      'type' => 'text',
      'label' => t('Data'),
      'description' => t('Getlocations Fields serialized data field'),
    );
  }
  return $keys;
}