summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-27 18:41:14 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-27 18:41:14 +0000
commitd864fc6363b03662cb904d6117b4e110f16d0158 (patch)
tree9da0a0eaa167652ed64b98a3d13e22ebbe37e6ec /includes/common.inc
parentbe6d3c8bb601fa53839b6c187b31e883e3334560 (diff)
downloadbrdo-d864fc6363b03662cb904d6117b4e110f16d0158.tar.gz
brdo-d864fc6363b03662cb904d6117b4e110f16d0158.tar.bz2
- Patch #754686 by yched: rename 'cacheable' property in hook_entity_info().
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc6
1 files changed, 2 insertions, 4 deletions
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);
}
/**