diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-12 17:23:38 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-12 17:23:38 +0100 |
commit | 881739cbac7b53fd99ee9467f5eb8a7a83118ceb (patch) | |
tree | a89aa70319b1d221ac9ac6a9e517d5f98ab0525d | |
parent | 612b52abc528009349cdfd323caed8dda4d21163 (diff) | |
parent | 0f864c38bba9e3ad352064db76a3d46be46eba2d (diff) | |
download | nextcloud-server-881739cbac7b53fd99ee9467f5eb8a7a83118ceb.tar.gz nextcloud-server-881739cbac7b53fd99ee9467f5eb8a7a83118ceb.zip |
Merge pull request #7668 from owncloud/trashbin_predelete
add preDelete hook for files_trashbin app
-rw-r--r-- | apps/files_trashbin/lib/trashbin.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index f6816b2b4c2..7e91f8a59ff 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)); |