diff --git a/includes/common.inc b/includes/common.inc index 4ec37dc..fa724c3 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -7446,7 +7446,11 @@ function entity_load($entity_type, $ids = FALSE, $conditions = array(), $reset = if ($reset) { entity_get_controller($entity_type)->resetCache(); } - return entity_get_controller($entity_type)->load($ids, $conditions); + $entities = entity_get_controller($entity_type)->load($ids, $conditions); + foreach ($entities as $entity) { + $entity->entity_type = $entity_type; + } + return $entities; } /**