nextcloud/apps/files_trashbin/appinfo/app.php

9 lines
418 B
PHP
Raw Normal View History

2013-01-18 16:11:29 +04:00
<?php
OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'files_trashbin/lib/hooks.php';
OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php';
2013-02-22 20:21:57 +04:00
//Listen to delete file signal
2013-02-07 16:14:45 +04:00
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA\Files_Trashbin\Hooks", "remove_hook");
//Listen to delete user signal
OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Trashbin\Hooks", "deleteUser_hook");