Index: entity.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/entity/entity/Attic/entity.module,v retrieving revision 1.1.2.30 diff -u -p -r1.1.2.30 entity.module --- entity.module 1 Dec 2010 19:04:39 -0000 1.1.2.30 +++ entity.module 4 Dec 2010 02:49:28 -0000 @@ -58,7 +58,33 @@ function entity_save($entity_type, $enti return entity_get_controller($entity_type)->save($entity); } else { - return FALSE; + if ($entity_type == 'node') { + node_save($entity); + return TRUE; + } + elseif ($entity_type == 'user') { + user_save($entity); + return TRUE; + } + elseif ($entity_type == 'comment') { + comment_save($entity); + return TRUE; + } + elseif ($entity_type == 'file') { + file_save($entity); + return TRUE; + } + elseif ($entity_type == 'taxonomy_term') { + taxonomy_term_save($entity); + return TRUE; + } + elseif ($entity_type == 'taxonomy_vocabulary') { + taxonomy_vocabulary_save($entity); + return TRUE; + } + else { + return FALSE; + } } }