Index: drupal/modules/system/system.api.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.api.php,v
retrieving revision 1.113
diff -u -r1.113 system.api.php
--- drupal/modules/system/system.api.php	29 Dec 2009 20:23:10 -0000	1.113
+++ drupal/modules/system/system.api.php	31 Dec 2009 10:21:29 -0000
@@ -213,7 +213,7 @@
  */
 function hook_entity_load($entities, $type) {
   foreach ($entities as $entity) {
-    $entity->foo = mymodule_add_something($entity, $entity_type);
+    $entity->foo = mymodule_add_something($entity, $type);
   }
 }
 
