function static_field_field_load in Static field 7
Implements hook_field_load().
File
- ./
static_field.module, line 118 - Static field main module file.
Code
function static_field_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
foreach ($entities as $entity_id => $entity) {
$items[$entity_id][0]['safe_value'] = check_markup($instances[$entity_id]['settings']['text']['value'], $instances[$entity_id]['settings']['text']['format']);
}
}