function countries_apachesolr_map_callback in Countries 7.2
Same name and namespace in other branches
- 8 countries.module \countries_apachesolr_map_callback()
Map callback.
1 string reference to 'countries_apachesolr_map_callback'
- countries_apachesolr_field_mappings in ./
countries.module - Implements hook_apachesolr_field_mappings().
File
- ./
countries.module, line 1082 - Defines the field and entity information for countries.
Code
function countries_apachesolr_map_callback(array $values) {
$map = array();
foreach ($values as $value) {
if ($country = country_load($value)) {
$map[$value] = countries_t($country, 'name');
}
}
return $map;
}