1 link.module link_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age)

Implements hook_field_load().

File

core/modules/link/link.module, line 250
Defines simple link field types.

Code

function link_field_load($entity_type, $entities, $field, $instances, $langcode, &$items, $age) {
  foreach ($entities as $id => $entity) {
    foreach ($items[$id] as $delta => $item) {
      $items[$id][$delta]['attributes'] = _link_load($field, $item, $instances[$id]);
    }
  }
}