Install
Works with Drupal: 7.xUsing Composer to manage Drupal site dependencies
Downloads
Release notes
Entity CRUD API changes since ALPHA 5:
* improved exportable entity status description texts - thanks to Bojhan for coming up with those.
* #836754 patch by Island Usurper: API change: entity_invoke() got removed
* moved tests to the Entity API group now defined by core
Entity Metadata changes since ALPHA 5:
* simplified saving of a user account, as user_save() got improved in the meantime
* #796380 patch by jrguitar21: fixed entity metadata token integration errors when tokens with a set language are used
* added node revision log and "creates revision" properties
* API change:
renamed key for additional metadata for data structures from 'data info' to 'property info' to reflect its content equals the returned info of hook_entity_property_info(). Therefore also removed the dataInfo() method, instead use getPropertyInfo() without arguments.
added method entityInfo() to the entity wrapper.
* added the possibility to specify a property info alter callback, that is invoked right before the property info is used. This is used by the Rules module for injecting metadata that has been asserted by conditions.
* improved entity_metadata_get_properties() to return all known properties in case no argument is given
* added metadata to mark properties, which stem from a field.
* fixed the wrapper to update its cached entity id when a new entity was saved.
* #823702 patch by klausi: fixed notice in case of not existing property values
* added body field to nodes by default as it is more convenient that way.
* added methods to the entity wrapper to ease getting the bundle and entity keys.
* fixed serializing of wrapped but not yet saved entities
* fixed query callbacks to use the new EntityFieldQuery().
* #844640 patch by Ozeuss: fixed entity metadata to only add taxonomy related metadata if the module is enabled
* #827790 Entity metadata: Overhaul system metdata to remove the fake entity
Instead of the previous fake 'system' entity, modules may provide metadata using hook_entity_propertiy_info() for the 'site', which is not registered as fake entity any more.
'system' has been renamed to 'site' in order to be consistent with the existing tokens.
Also fixed token integration to properly work with 'site' tokens and to properly chain through in case of properties referencing to entities.
* #846656 entity metadata: accidentially implemented hook_node_access().