function countries_field_load in Countries 7
Implement hook_field_load().
File
- ./
countries.module, line 353
Code
function countries_field_load($obj_type, $objects, $field, $instances, $langcode, &$items) {
foreach ($objects as $id => $object) {
foreach ($items[$id] as $delta => $item) {
$items[$id][$delta]['country'] = countries_get_country($item['iso2']);
$items[$id][$delta]['safe'] = check_plain($items[$id][$delta]['country']->name);
}
}
}