function location_entity_key_map in Location 7.3
Helper function that returns location key map array.
1 call to location_entity_key_map()
- location_entity_field_item_location_property_callback in contrib/
location_entity/ location_entity.module - Property callback for location field.
File
- contrib/
location_entity/ location_entity.module, line 51 - Location Entity module.
Code
function location_entity_key_map() {
return array(
'lid' => array(
'type' => 'integer',
'label' => t('Lid'),
),
'latitude' => array(
'type' => 'decimal',
'label' => t('Latitude'),
),
'longitude' => array(
'type' => 'decimal',
'label' => t('Longitude'),
),
'name' => array(
'type' => 'text',
'label' => t('Name'),
),
'street' => array(
'type' => 'text',
'label' => t('Street'),
),
'additional' => array(
'type' => 'text',
'label' => t('Additional'),
),
'city' => array(
'type' => 'text',
'label' => t('City'),
),
'province' => array(
'type' => 'text',
'label' => t('Province'),
),
'postal_code' => array(
'type' => 'text',
'label' => t('Postal code'),
),
'country' => array(
'type' => 'text',
'label' => t('Country'),
),
'province_name' => array(
'type' => 'text',
'label' => t('Province name'),
),
'country_name' => array(
'type' => 'text',
'label' => t('Country name'),
),
'phone' => array(
'type' => 'text',
'label' => t('Phone number'),
),
'fax' => array(
'type' => 'text',
'label' => t('Fax number'),
),
'email' => array(
'type' => 'text',
'label' => t('Email'),
),
'www' => array(
'type' => 'text',
'label' => t('Website'),
),
);
}