diff --git a/core/includes/entity.inc b/core/includes/entity.inc index 2ab32f9..2b504aa 100644 --- a/core/includes/entity.inc +++ b/core/includes/entity.inc @@ -544,12 +544,8 @@ function entity_form_submit_build_entity($entity_type, $entity, $form, &$form_st * @see hook_entity_info() */ function entity_list_controller($entity_type) { - $controllers = &drupal_static(__FUNCTION__, array()); - if (!isset($instances[$entity_type])) { - $info = entity_get_info($entity_type); - $class = $info['list controller class']; - $storage = entity_get_controller($entity_type); - $controllers[$entity_type] = new $class($entity_type, $storage); - } - return $controllers[$entity_type]; + $storage = entity_get_controller($entity_type); + $entity_info = entity_get_info($entity_type); + $class = $entity_info['list controller class']; + return new $class($entity_type, $storage); }