function field_attach_load_revision

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())
cle7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())
elmsmedia7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())
icor7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())
meedjum_blog7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())
mooc7 field.attach.inc field_attach_load_revision($entity_type, $entities, $options = array())

Load all fields for previous versions of a group of entities.

Loading different versions of the same entities is not supported, and should be done by separate calls to the function.

field_attach_load_revision() is automatically called by the default entity controller class, and thus, in most cases, doesn't need to be explicitly called by the entity type module.

Parameters

$entity_type: The type of $entity; e.g. 'node' or 'user'.

$entities: An array of entities for which to load fields, keyed by entity ID. Each entity needs to have its 'bundle', 'id' and (if applicable) 'revision' keys filled. The function adds the loaded field data directly in the entity objects of the $entities array.

$options: An associative array of additional options. See field_attach_load() for details.

Related topics

3 calls to field_attach_load_revision()
DrupalDefaultEntityController::attachLoad in includes/entity.inc
Attaches data to entities upon loading.
EntityAPIControllerExportable::attachLoad in sites/all/modules/ulmus/entity/includes/entity.controller.inc
Overridden.
field_test_entity_test_load in modules/field/tests/field_test.entity.inc
Loads a test_entity.

File

modules/field/field.attach.inc, line 757
Field attach API, allowing entities (nodes, users, ...) to be 'fieldable'.

Code

function field_attach_load_revision($entity_type, $entities, $options = array()) {
  return field_attach_load($entity_type, $entities, FIELD_LOAD_REVISION, $options);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.