- Patch #707724 by yche: forgot to rename 'object keys' to 'entity keys'.

merge-requests/26/head
Dries Buytaert 2010-03-28 10:46:36 +00:00
parent 7bb37e19c1
commit cf7750838d
1 changed files with 1 additions and 1 deletions

View File

@ -6247,7 +6247,7 @@ function entity_get_info($entity_type = NULL) {
);
// If no bundle key is provided, assume a single bundle, named after
// the entity type.
if (empty($entity_info[$name]['object keys']['bundle']) && empty($entity_info[$name]['bundles'])) {
if (empty($entity_info[$name]['entity keys']['bundle']) && empty($entity_info[$name]['bundles'])) {
$entity_info[$name]['bundles'] = array($name => array('label' => $entity_info[$name]['label']));
}
}