function hook_field_attach_load

hook_field_attach_load($entity_type, $entities, $age, $options)

Act on field_attach_load().

This hook is invoked after the field module has performed the operation.

Unlike other field_attach hooks, this hook accounts for 'multiple loads'. Instead of the usual $entity parameter, it accepts an array of entities, indexed by entity ID. For performance reasons, information for all available entities should be loaded in a single query where possible.

The changes made to the entities' field values get cached by the field cache for subsequent loads.

See field_attach_load() for details and arguments.

Related topics

File

modules/field/field.api.php, line 1315
Hooks provided by the Field module.

Code

function hook_field_attach_load($entity_type, $entities, $age, $options) {
  // @todo Needs function body.
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_attach_load/7.x