From feee4b865b5dc700d5380af30fc0a68949bb296c Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 12 Nov 2013 14:00:36 +0100 Subject: add delete hook for trash bin app --- apps/files_trashbin/lib/trashbin.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/files_trashbin/lib') diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index c79afdc0c2e..4e314d62d01 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -530,6 +530,7 @@ class Trashbin { $size += $view->filesize('/files_trashbin/files/' . $file); } $view->unlink('/files_trashbin/files/' . $file); + \OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => $path)); $trashbinSize -= $size; self::setTrashbinSize($user, $trashbinSize); -- cgit v1.2.3