function computed_field_field_load in Computed Field 7
Implements hook_field_load().
File
- ./
computed_field.module, line 291 - Functionality for the computed field.
Code
function computed_field_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
$settings = $field['settings'];
// Compute field values on load if they aren't stored in the database.
if (!$settings['store']) {
foreach ($entities as $etid => $entity) {
_computed_field_compute_value($entity_type, $entity, $field, $instances, $langcode, $items[$etid]);
}
}
}