From fd7d800a5b30d23e2eec03ab6a56cd5758b105f4 Mon Sep 17 00:00:00 2001
From: Dave Hall <dave.hall@skwashd.com>
Date: Mon, 20 Aug 2012 15:18:23 +0200
Subject: [PATCH] Issue #1741028 by skwashd: Add creation callback support for
 files

---
 entity.module |    1 +
 1 file changed, 1 insertion(+)

diff --git a/entity.module b/entity.module
index 3e872fa..b4a65bf 100644
--- a/entity.module
+++ b/entity.module
@@ -1264,6 +1264,7 @@ function _entity_info_add_metadata(&$entity_info) {
   $entity_info['user']['deletion callback'] = 'user_delete';
   $entity_info['file']['save callback'] = 'file_save';
   $entity_info['file']['deletion callback'] = 'entity_metadata_delete_file';
+  $entity_info['file']['creation callback'] = 'entity_metadata_create_object';
 
   // Form callbacks.
   $entity_info['node']['form callback'] = 'entity_metadata_form_node';
-- 
1.7.9.5

