hook_field_storage_load
- Versions
- 7
hook_field_storage_load($obj_type, $objects, $age, $fields)
Load field data for a set of objects.
Parameters
$obj_type The entity type of object, such as 'node' or 'user'.
$objects The array of objects for which to load data, keyed by object id.
$age FIELD_LOAD_CURRENT to load the most recent revision for all fields, or FIELD_LOAD_REVISION to load the version indicated by each object.
$fields An array listing the fields to be loaded. The keys of the array are field ids, the values of the array are the object ids (or revision ids, depending on the $age parameter) to be loaded for each field.
Return value
Loaded field values are added to $objects. Fields with no values should be set as an empty array.
Related topics
Code
modules/field/field.api.php, line 1186
<?php
function hook_field_storage_load($obj_type, $objects, $age, $fields) {
}
?>Login or register to post comments 