From 0f864c38bba9e3ad352064db76a3d46be46eba2d Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 11 Mar 2014 14:10:12 +0100 Subject: [PATCH] add preDelete hook for files_trashbin app --- apps/files_trashbin/lib/trashbin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index f6816b2b4c..7e91f8a59f 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -563,6 +563,7 @@ class Trashbin { } else { $size += $view->filesize('/files_trashbin/files/' . $file); } + \OC_Hook::emit('\OCP\Trashbin', 'preDelete', array('path' => '/files_trashbin/files/' . $file)); $view->unlink('/files_trashbin/files/' . $file); \OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => '/files_trashbin/files/' . $file));