From d864fc6363b03662cb904d6117b4e110f16d0158 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 27 Mar 2010 18:41:14 +0000 Subject: - Patch #754686 by yched: rename 'cacheable' property in hook_entity_info(). --- includes/common.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 06b029a14..f6ad0e7cd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6234,11 +6234,11 @@ function entity_get_info($entity_type = NULL) { 'fieldable' => FALSE, 'controller class' => 'DrupalDefaultEntityController', 'static cache' => TRUE, + 'field cache' => TRUE, 'load hook' => $name . '_load', 'bundles' => array(), 'view modes' => array(), 'entity keys' => array(), - 'cacheable' => TRUE, 'translation' => array(), ); $entity_info[$name]['entity keys'] += array( @@ -6287,7 +6287,6 @@ function entity_info_cache_clear() { * 0: primary id of the entity * 1: revision id of the entity, or NULL if $entity_type is not versioned * 2: bundle name of the entity - * 3: whether $entity_type's fields should be cached (TRUE/FALSE) */ function entity_extract_ids($entity_type, $entity) { $info = entity_get_info($entity_type); @@ -6297,8 +6296,7 @@ function entity_extract_ids($entity_type, $entity) { // If no bundle key provided, then we assume a single bundle, named after the // entity type. $bundle = $info['entity keys']['bundle'] ? $entity->{$info['entity keys']['bundle']} : $entity_type; - $cacheable = $info['cacheable']; - return array($id, $vid, $bundle, $cacheable); + return array($id, $vid, $bundle); } /** -- cgit v1.2.3