function search_api_location_location_properties in Search API Location 7.2
Adds additional properties to "Location" fields.
Parameters
array $info: The entire entity property info.
string $entity_type: The entity type to which the field is attached.
array $field: The field info array.
array $instance: The field instance info array.
1 string reference to 'search_api_location_location_properties'
- search_api_location_field_info_alter in ./
search_api_location.module - Implements hook_field_info_alter().
File
- ./
search_api_location.module, line 201 - Provides location based search functionality for the Search API.
Code
function search_api_location_location_properties(&$info, $entity_type, $field, $instance) {
$property =& $info[$entity_type]['bundles'][$instance['bundle']]['properties'][$field['field_name']];
$property['property info']['latlon'] = array(
'type' => 'text',
'label' => t('Latitude/longitude pair'),
'getter callback' => 'search_api_location_location_latlon_get',
);
}