summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/file.inc b/includes/file.inc
index ccac9cabc..b03e9d4d9 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -512,11 +512,13 @@ function file_save(stdClass $file) {
drupal_write_record('file', $file);
// Inform modules about the newly added file.
module_invoke_all('file_insert', $file);
+ entity_invoke('insert', 'file', $file);
}
else {
drupal_write_record('file', $file, 'fid');
// Inform modules that the file has been updated.
module_invoke_all('file_update', $file);
+ entity_invoke('update', 'file', $file);
}
return $file;