summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfago2012-12-25 19:28:43 (GMT)
committer fago2012-12-25 19:28:43 (GMT)
commitcf6625081db544d8a6afbc7e52c6702dee29a8f5 (patch)
treedb8dbc7ab3bdd9c05eabb1306a609bc55589170d
parent5731f741e3366889e95b5357f1f85b0acc51a9fe (diff)
Issue #1290986: Remove entity info cache clear workaround.
-rw-r--r--entity.module9
1 files changed, 0 insertions, 9 deletions
diff --git a/entity.module b/entity.module
index 2af9f47..df59079 100644
--- a/entity.module
+++ b/entity.module
@@ -1333,15 +1333,6 @@ function entity_module_implements_alter(&$implementations, $hook) {
function entity_entity_info_alter(&$entity_info) {
_entity_info_add_metadata($entity_info);
- // Modules are using entity_load() in hook_entity_info_alter() to add
- // their bundle-info. This might trigger the field API cache to be built,
- // which makes use of the bundle-info. In that case the field-info cache would
- // have been built with in-complete bundle-info, thus we clear it so it is
- // rebuilt with complete bundle-info the next time field-info is requested.
- _field_info_collate_fields(TRUE);
- // To be sure, also clear the property info cache as it depends on field info.
- entity_property_info_cache_clear();
-
// Populate a default value for the 'configuration' key of all entity types.
foreach ($entity_info as $type => $info) {
if (!isset($info['configuration'])) {