function _location_feeds_fields in Location Feeds 6
Same name and namespace in other branches
- 7 location_feeds.module \_location_feeds_fields()
Helper function to get to manage target fields
Return value
array of key/value field name/field label
2 calls to _location_feeds_fields()
- location_feeds_feeds_node_processor_targets_alter in ./
location_feeds.module - Implements feeds_node_processor_target_alter().
- _location_feeds_location in ./
location_feeds.module - Helper function to handle node and user locations
File
- ./
location_feeds.module, line 125 - This module provides location mappers to feed importers.
Code
function _location_feeds_fields() {
static $fields;
if (isset($fields)) {
return $fields;
}
$fields = location_field_names(TRUE);
unset($fields['locpick']);
$fields['locpick][user_latitude'] = t("Latitude");
$fields['locpick][user_longitude'] = t("Longitude");
// province_name / country_name / map_link are display fields
unset($fields['province_name']);
unset($fields['country_name']);
unset($fields['map_link']);
return $fields;
}