summaryrefslogtreecommitdiffstats
path: root/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php3
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';