function countries_field_sanitize in Countries 7
Implement hook_field_sanitize().
File
- ./
countries.module, line 365
Code
function countries_field_sanitize($obj_type, $object, $field, $instance, $langcode, &$items) {
foreach ($items as $delta => $item) {
if (!isset($items[$delta]['safe'])) {
$items[$delta]['country'] = countries_get_country($item['iso2']);
$items[$delta]['safe'] = check_plain($items[$id][$delta]['country']->name);
}
}
}