You are here

function link_field_load in Link 7

Implements hook_field_load().

File

./link.module, line 316
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]);
      $items[$id][$delta]['original_title'] = isset($item['title']) ? $item['title'] : NULL;
      $items[$id][$delta]['original_url'] = $item['url'];
    }
  }
}