| Versionen | |
|---|---|
| drupal7 | field_attach_load_revision($obj_type, $objects) |
Load all fields for a previous version of each of a set of objects of a single object type.
Loading different versions of the same objects is not supported, and should be done by separate calls to the function.
$obj_type The type of $object; e.g. 'node' or 'user'.
$objects An array of objects for which to load fields, keyed by object id. Each object needs to have its 'bundle key', 'id key' and 'revision key' filled.
s On return, the objects in $objects are modified by having the appropriate set of fields added.
This function is an autoloader for _field_attach_load_revision() in modules/field/field.attach.inc.
modules/
<?php
function field_attach_load_revision($obj_type, $objects) {
require_once DRUPAL_ROOT . '/modules/field/field.attach.inc';
return _field_attach_load_revision($obj_type, $objects);
}
?>
Kommentare
Kommentar hinzufügen