entity 7.x-1.1
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.1.zip | 137.34 KB | 0102720b7eafa2aaf1275a5d905e324f |
| entity-7.x-1.1.tar.gz | 107.92 KB | 1f23d1bee48287f1c53f8d3f1391187a |
Release notes
Changes since 7.x-1.0:
- #1947142 by plach | ottawadeveloper: Fixed Provide protection against label callback recursion.
- #1917538 Avoid notices if no metadata is defined for the label property.
- #1958276 by eojthebrave: Fixed Typo, indicating is spelled incorrectly in the hook_entity_property_info() documentation.
- #1831578 by OnkelTem, ParisLiakos: Use file_entity_access() callback when file_entity module is present.
- #1600306 by iMiksu, mrfelton: Fixed setting boolean values via the property info setter.
- #1831660 by OnkelTem: Fixed Notice: Undefined index: display_default() in entity_metadata_field_file_create_item() (line 574 of entity/modules/callbacks.inc).
- #1605132 by bforchhammer: Fixed Remove references to removed 'entity_metadata_get_info()' function.
- #1462772: Follow-up to improve the pattern introduced by the last commit.
- #1462772 by fago: Fixed entity template suggestions are not working if no custom template is defined.
entity 7.x-1.0
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0.zip | 136.93 KB | 32d84f8bcc903600822d60d6a9bd2dca |
| entity-7.x-1.0.tar.gz | 107.5 KB | f072eda34e284561bb55cfae0dbe30db |
Release notes
Changes since 7.x-1.0-rc3:
Read moreentity 7.x-1.0-rc3
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-rc3.tar.gz | 104.13 KB | 267c552757d1fa8bbe17c624a7ec4c3f |
| entity-7.x-1.0-rc3.zip | 133.65 KB | d2c965ad93c03a5edd3b269925d9ad11 |
Release notes
Changes since 7.x-1.0-rc2:
Read moreentity 7.x-1.0-rc2
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-rc2.zip | 133.02 KB | 5459aa32330c57b1f817f57d23bdf7e6 |
| entity-7.x-1.0-rc2.tar.gz | 103.51 KB | 587d7b6a088a195722fe7d11b1c9c8fa |
Release notes
Compatibility note: If the i18n Translation Sets module (i18n_translation) is used, an i18n version of 1.5 or later is required!
Changes since 7.x-1.0-rc1:
Read moreentity 7.x-1.0-rc1
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-rc1.zip | 119.68 KB | 99d53976848240c2821396976471cf8b |
| entity-7.x-1.0-rc1.tar.gz | 93 KB | daa6dff009d00756f86b80b31af32c77 |
Release notes
Developers please note the change records applicable for this release: link
Changes since 7.x-1.0-beta11:
Read moreentity 7.x-1.0-beta11
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta11.tar.gz | 81.26 KB | 0d98c2c361e5936593b8365614fa04e3 |
| entity-7.x-1.0-beta11.zip | 98.02 KB | b16557aaf793d63ba62ba68f49c4e3af |
Release notes
Change records!
Developers and site-builders, please note the change records applicable for this release: link
Changes since 7.x-1.0-beta10:
Read moreentity 7.x-1.0-beta10
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta10.tar.gz | 75.39 KB | 016f48d7ecee0da62ae1a8f6cf26a656 |
| entity-7.x-1.0-beta10.zip | 91.41 KB | d780466334235ecf9471a6277d1c6e1a |
Release notes
Changes since 7.x-1.0-beta9:
- #1208864 patch by Damien Tournoud: API change: extended entity_view() to allow the caller to set the 'page' flag when rendering an entity.
- improved list-wrappers to not try to load empty lists of entities.
- #1191398 patch by fago, dixon_: Adding entity to list causes WSOD.
- #1211946 fixed Rules integration for provided entity-types to be invoked last.
- #1208514 Entity object serialization is unnecessarily fat.
- #1203808 patch by fago: fixed validating and unsetting multipe-value properties. Also fixed field properties to be properly marked as required.
- #1178052 patch by klausi, fago: fixed unsetting entity references with the property wrappers and added a test case for it.
- #1027908 follow-up by xatoo: fix save() of exportables to properly pass through the return value.
- fixed type() method of generic entity wrappers
- #1193862 patch by Cyberwolf: Entities are exported by Features with their numeric IDs instead of machine names.
entity 7.x-1.0-beta9
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta9.zip | 89.99 KB | 57ab6f16c8d15c09b5dae9510ad83f3a |
| entity-7.x-1.0-beta9.tar.gz | 74.06 KB | a965dc47b0b8afc2f75b69be31e767d0 |
Release notes
There are important API changes for all modules that implement exportable entities with the help of the entity API module. Short, entity_load() now always returns numeric ids (instead of names as it was the case previously) and exportables have to use the now separated EntityAPIControllerExportable class.
Refer to #1027908-50: entity_load() should return entities keyed by ID, not name for more details and examples for necessary code changes.
Changes since 7.x-1.0-beta8:
Read moreentity 7.x-1.0-beta8
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta8.tar.gz | 69.59 KB | 317ec15a5f9d90e7613b52f20a7e9a82 |
| entity-7.x-1.0-beta8.zip | 84.68 KB | bdda06d40b3c07171c1ebd4382eba58e |
Release notes
changes since beta7:
removed the deprecated entity metadata module.
#1093918 improve entity property query support
#1081188 patch by drunken monkey: entity_view() for comments is broken
#1071814 patch by klausi: Type of boolean fields is int
#1092240 patch by scor: Minor code style tweak.
#1062358 patch by klausi, fago: Delete should be more robust with an empty array of ids.
#1066398 patch by sun, fago: Reverse entity relationships for Views integration.
added a template suggestion incorporating the view mode
#1071710 patch by klausi: Notices and warnings in entity_metadata_field_query()
fixed notices in field_attach_prepare_view() if used for exportable entities.
#1074070 patch by linclark: Entities don't contain RDF type or about URI.
fixed the wrapper to ensure the entity is loaded before calling delete.
Stripping CVS keywords
#913962 added current path and URL properties for usage with Rules.
#1071316 patch by rszrama: fixed PHP Fatal error due to accidentily commiting a patch twice. ouch.
#1063898 fixed unsetting property values with the wrappers.
entity 7.x-1.0-beta7
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta7.zip | 89.63 KB | 7dc9b04be79bf57c93ffec81ab37f7dd |
| entity-7.x-1.0-beta7.tar.gz | 71.02 KB | 9598452892a90a3b098d3152334aeb85 |
Release notes
changes since BETA6:
#1064452 patch by dasjo: added a entity_property_verbatim_date_get callback for dates.
#1065540 patch by rszrama: fixed typo in access callback docs.
fixed the wrapper classes to correctly make use of machine names for identifying entities if available.
improved the wrappers to only throw exceptions for missing data values if a property value is to be retrieved.
#1047704 patch by nedjo: add entity API as dependency when generating features.
#1005532 Support different use-cases of options list and added label() helper method to the wrapper classes.
entity_property_values_create_entity() fails if entity keys are set to FALSE.
added the missing argument to setter callbacks for properties
fixed the statusKey property of the entity class to be protected.
#1031382 allow marking properties as translatable.
#1046270 patch by me and klausi: fixed some user property permission checks.
#1041240 patch by pcambra, rszrama: fixed the property table query callback to use efq properly.
#1047032 patch by nedjo: Imports fail for entity types without custom entity class--is_new flag not set
#1032910 Using entity tokens may cause entity wrapper exceptions
Do not export the providing module name.
entity 7.x-1.0-beta6
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta6.tar.gz | 66.86 KB | 64588b70e6773d146e0bf4267a90a270 |
| entity-7.x-1.0-beta6.zip | 84.95 KB | cce03b3f1c7e6855a4ff0bee3883dd0a |
Release notes
API changes since BETA5:
* Exportable entities have been overhauled, so that all entities are stored in the database. Modules providing an exportable entity type need to be updated. See #1008810-8: Store all exportables in the db-
* Entity metadata wrappers: The value() method now doesn't throw an exception for not set properties any more, but returns NULL - see #708268.
Complete list of changes since BETA5:
* #1006664 fixed call to undefined function errors occurring without the entity metadata module
* #1007542 removed the empty .info file for the upgrade, as it causes troubles with the update-manager
* #708268 some metadata wrapper improvements, in particular fixed property updates to be properly reflected in parent data structures. API change: value() now doesn't throw an exception for not set properties any more, but returns NULL.
* #708268 added image and file field support, including tests.
* #708268 improved property info for text fields to also support summaries and added tests.
* #1010144 patch by drunken monkey: fixed information for anonymous authors
* #1013240 patch by aspilicious: Remove unnecessary files[] declarations from .info file
* #1008810 overhauled exportable entities so that all entities are stored in the database. Upgrade for modules making use of exportable entities is required, see #1008810-8.
entity 7.x-1.0-beta5
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta5.zip | 81.43 KB | 19f1479eadabec7cd4b506e03dc52243 |
| entity-7.x-1.0-beta5.tar.gz | 63.77 KB | 53325d82ab40c0dc325ccb59d0bca3e6 |
Release notes
Release compatible with Drupal 7 RC3.
changes since beta4:
#986046 patch by sun: follow-up to work with recent list module changes. Requires a recent d7 version.
entity 7.x-1.0-beta4
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta4.zip | 81.43 KB | 636df968af15c179ee9f541143978c5e |
| entity-7.x-1.0-beta4.tar.gz | 63.77 KB | 93210f6c3b3b19258f217a64e6bd56a8 |
Release notes
This release is compatible with D7-RC2. If you use a more recent Drupal 7 version, use the entity API dev version instead.
Since beta3, the entity CRUD API and entity metadata modules have been merged into a single module. Also there is now a new module "entity tokens", which just provides token replacements for entity properties that have no tokens and are known to the entity API (as previously entity metadata).
For details and a list of API changes see #988780-28: Merge both modules into one.
changes since beta3:
#988780 follow-up to fix the entity API and its tests to work without the BC module
#999908 implement hook_entity_presave()
#1002692 patch by sun: fixed notice "Undefined index: exportable in EntityDefaultUIController->hook_menu()"
#978832 improved the docs of hook_entity_enabled/disabled().
fixed the Entity class comment to properly describe implementing an entity label() and uri()
#988780 API Change: merged both modules into a single one. Read http://drupal.org/node/988780#comment-3834560 for a detailed description of the changes.
#993428 Entity CRUD: features exports are not properly escaped
#975616 Entity metadata: API change: Removed any duplicate properties.
#990558 Entity CRUD: follow core and allow reacting on changes via $entity->original, including tests.
entity 7.x-1.0-beta3
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta3.zip | 78.64 KB | 97468de033a396af051f066ca8b24ba0 |
| entity-7.x-1.0-beta3.tar.gz | 60.5 KB | cb05413449da98da415d40e3520f0f6d |
Release notes
Entity CRUD API changes since BETA 2:
#976348 follow-up: make entity_forms() actually work.
#978832 Entity CRUD: enable modules to act on enabled or disabled exportables
Entity CRUD API: deprecated EntityDB in favour of the new class 'Entity' + lots of documentation updates
Entity CRUD: help entity types to implement their label() and uri() callback in a way they are alterable, but ease to use.
#976360 Entity CRUD: patch by joachim: further improve the admin UI API docs.
Entity CRUD: simplified loading logic for exportables
#975758 patch by klausi: added import/export to the admin UI of exportables. Yay!
enable resetCache to work with multiple ids.
#982004 Entity CRUD: clarified admin UI hook_forms() implementation.
#983090 Entity CRUD: improved resetting of the static cache
Entity CRUD: optimized + fixed possible issue in the loading logic
Entity CRUD: fixed attaching fields to an exportable entity
#981302 Entity CRUD: patch by klausi: remove support for the faces API (API Change)
Entity CRUD: use the Entity class instead of the deprecated EntityDB class.
API changes for the Entity CRUD API since BETA 2:
* The entity controller resetCache() method function signature changed in core and so in the Entity API's controller. See #651240-38: Allow modules to react to changes to an entity for details.
entity 7.x-1.0-beta2
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta2.zip | 77.32 KB | 5702ddf6e544dbb6ab3a82bd4380e3f5 |
| entity-7.x-1.0-beta2.tar.gz | 59.25 KB | a1646f5c1933772feb76e2dd31d6324b |
Release notes
Beside of lots of small improvements and bug fixes, the most important improvement since BETA 1 is the addition of an (optional) admin interface for entity types implemented with the entity CRUD API. Modules may make use of that to provide their UI on top of it, whereas the defaults can be easily customized.
Entity CRUD API changes since BETA 1:
#973116 Entity CRUD API: fixed throwing exceptions in case of errors during saving or deletion. API change: In case of errors, an exception is thrown instead of returning FALSE.
Entity CRUD: do not export the 'is_new' flag
#970338 Entity CRUD: fixed module name of the entity test module
#976348 make entity_forms() more efficient to prevent unnecessarily loading UI controllers
#976346 Entity CRUD API: fixed notices entity_has_status() + improved the API docs
#976360 Entity CRUD: document that the access callback is required for the admin UI
Entity CRUD API: some small doc improvements
Entity CRUD: implemented the recently introduced hooks entity_view and entity_view_alter
Entity CRUD: added hook_file_download_access() implementation for entities provided via the CRUD API.
#962026 Entity CRUD: patch by klausi: fix entity URI links in the UI
Entity CRUD: patch by klausi and me: add a FAPI validation handler to ease validation of machine names for exportables
entity 7.x-1.0-beta1
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-beta1.zip | 70.66 KB | 04c8313cb68456f275f5aabca07a1e74 |
| entity-7.x-1.0-beta1.tar.gz | 53.38 KB | 2e53243fdf0fae60217dd7916d982e47 |
Release notes
Entity CRUD API changes since ALPHA 6:
#893574 patch by casey: EntityAPIController#delete is missing db_transaction()
#880374 moved entity.test file into the test directory and fixed the testing module name
Entity CRUD API: automatically generate Rules integration.
generate some basic entity metadata out of the schema information
Entity CRUD: fix entity loading of exportables to only add in all defaults when FALSE is passed.
Entity CRUD: do not add a trailing ; to the default entity export
Entity CRUD: add an optional prefix parameter to entity export()
Entity CRUD: don't export the internal numeric ID in case we are using names.
#920396 provide features integration for exportables
Entity CRUD: allow overides of save() and delete() to optionally pass in a custom transaction object
Entity CRUD: properly unset the is_new property after creation
Entity CRUD: provide entity_view(), entity_build_content(), default implementations and a default template to support modules implementing viewing.
#931026 Entity CRUD API: support loading by numeric id for exportables too
entity CRUD: added entity_access() for entities provided via the CRUD api
Entity CRUD: added a module key providing the source module of an exoprtable and improved the docs
entity 7.x-1.0-alpha6
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-alpha6.tar.gz | 46.21 KB | 5d88abea4508ea3561332f466746ab3d |
| entity-7.x-1.0-alpha6.zip | 60.93 KB | 67bbd091c22ea67d0df387c32c110216 |
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.
entity 7.x-1.0-alpha5
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-alpha5.tar.gz | 44.27 KB | 13348a08070605b3742d4fad7856d76a |
| entity-7.x-1.0-alpha5.zip | 58.61 KB | e01b31f8d1bdce97dcbf61c57b76a782 |
Release notes
Entity CRUD API changes since ALPHA 4:
#741660 patch by Amitaibu: Add 'is-new' property on entity-create
fixing compatibility with the recent drupal 7 HEAD (entity info 'object keys' is 'entity keys' now)
added support for exporting entities to code via the general entity_export() function. includes a test.
added a theme function for rendering the entity exportable status
added entity_var_json_export() for pretty printing JSON for exporting
#769120 fix entity loading for exportables such that defaults are always overridden, improved tests to cover passing conditions.
Entity Metadata changes since ALPHA 4:
added a property for the vocabulary-machine-name of taxonomy terms
fix to not accidentially implement hook_file_delete().
fixed warning when running token replacements
fixing compatibility with the recent drupal 7 HEAD (entity info 'object keys' is 'entity keys' now)
fixed the options list to not depend on available data
fix E_STRICT compatibility by cleaning up references. As now references cannot be used optionally getters cannot return data by reference any more. If "references" are required though the EntityMetadataArrayObject may be used to wrap arrays so that changes to the wrapper are reflected in the passed array immediately.
entity 7.x-1.0-alpha4
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-alpha4.tar.gz | 40.64 KB | 0e093c0ded92b23a4e628a7953a198dc |
| entity-7.x-1.0-alpha4.zip | 54.59 KB | fd57cb018430af65e11c28757fd212e2 |
Release notes
Entity CRUD API changes since ALPHA 3:
* overhauled the entity CRUD API to be a full module dependency, thus using it without introducing the dependency isn't possible any more. That way we are able to roll out updates much easier and to provide multiple EntityDB base classes, one being extendable via faces and one not.
* added entity_(create|delete|save) API functions and a test for them
* fixed API docs as full CRUD is also possible with usual functions leveraging the controller
* updated faces.inc
* applied the changes from #731426 to the controller, making it work with HEAD again.
* fixed default entities to not be added in when all ids were served from cache
* fixed deletion by names
* moved the full CRUD implementation to the controller, so it can be easily swapped out and improved saving and deletion to make use of transactions and to properly support db replication
Due to recent changes to the Entity Controller in Drupal 7.x you need drupal 7.x ALPHA 3 or later.
Entity Metadata changes since ALPHA 3:
* #716060 Provide tokens for entity properties that don't have tokens yet. Thus this adds tokens for single-valued fields.
* #706620 Clear the cache after adding or changing fields
* fixed caching entity property info to be per language as implemented first in #503550 and added a cache clear function
entity 7.x-1.0-alpha3
| Download | Size |
md5 hash |
|---|---|---|
| entity-7.x-1.0-alpha3.zip | 52.52 KB | 29d6706a1d6430840df050095bdc0f31 |
| entity-7.x-1.0-alpha3.tar.gz | 39.79 KB | d347ca5528b9ed9d132b492cb4b7b2af |
Release notes
updated to run with d7 HEAD (as of now). Most notable the entity metadata API has been improved, so it provides now full CRUD API functions for all core entities and lazy-loads now all referenced entities.
CRUD API:
* conditionally load classes to be more robust in case of multiple file inclusions
* #701526 Invoke hook_entity_insert() and hook_entity_update()
* updated to the most recent faces.inc
entity metadata
* make using underscores for getting property wrappers possible, e.g. $w->taxonomy_tags so {} are required less often.
* #705384 Make entity creation with given ids possible
* add support for querying entities by property value, includes test.
* added support for wrapping arbitrary "data structures" by passing in its data info
* added taxonomy term reference field metadata and test it
* added keys to hook_entity_info to specify CRUD function callbacks and added useful API functions to make use of them. includes docs.
* added the currently logged in user to the system
* added metadata about access permissions on entity level
and metadata about access permissions on property level
including API functions to easily make use of the metadata and tests
* make use of the new entity_path() method for getting urls
+ a bunch of fixes.