From 91bc8bed90634548d06087e9ff9d2ad616e0392f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 15 Oct 2010 03:36:21 +0000 Subject: #709892 by drunken monkey, Yorirou: Complete entity CRUD hook invocations: Add a hook_entity_delete() for consistency. --- includes/file.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'includes/file.inc') 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. -- cgit v1.2.3