summaryrefslogtreecommitdiff
path: root/includes/file.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/file.inc')
-rw-r--r--includes/file.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 64821ba22..1dd34cbae 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -1190,6 +1190,7 @@ function file_delete(stdClass $file, $force = FALSE) {
// Let other modules clean up any references to the deleted file.
module_invoke_all('file_delete', $file);
+ module_invoke_all('entity_delete', $file, 'file');
// Make sure the file is deleted before removing its row from the
// database, so UIs can still find the file in the database.