diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-04 03:09:17 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-04 03:09:26 +0200 |
commit | 57e61031877e1f921e7b4446471c61e4c5ac1b13 (patch) | |
tree | 7128e8d03cddd191113e0e8e447dcee5437d37d4 /appinfo | |
parent | 8eedcfa1446fb6589cf57ec19ef5b5163b38b5b3 (diff) |
register hooks for deleting feeds, folders and items if a user is deleted, fix #468
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index b2f082ee7..dcc00f3d3 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -26,6 +26,7 @@ namespace OCA\News; use \OCA\AppFramework\Core\API; + // dont break owncloud when the appframework is not enabled if(\OCP\App::isEnabled('appframework')){ @@ -54,6 +55,8 @@ if(\OCP\App::isEnabled('appframework')){ )); $api->addRegularTask('OCA\News\Backgroundjob\Task', 'run'); + $api->connectHook('OC_User', 'pre_deleteUser', + 'OCA\News\Hooks\UserHooks', 'deleteUser'); } else { $msg = 'Can not enable the News app because the App Framework App is disabled'; |