1234567891011121314151617181920212223242526272829 |
- <?php
- namespace OCA\Files_Trashbin;
- class Hooks {
-
- public static function deleteUser_hook($params) {
- $uid = $params['uid'];
- Trashbin::deleteUser($uid);
- }
- public static function post_write_hook($params) {
- $user = \OC_User::getUser();
- if (!empty($user)) {
- Trashbin::resizeTrash($user);
- }
- }
- }
|