forked from humhub-contrib/block-profile-changes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
25 lines (22 loc) · 988 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2018 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
use humhub\components\Application;
use humhub\modules\user\controllers\AccountController;
use humhub\modules\user\widgets\AccountMenu;
use humhub\modules\user\widgets\AccountProfileMenu;
/** @noinspection MissedFieldInspection */
return [
'id' => 'block-profile-changes',
'class' => 'humhub\modules\blockprofilechanges\Module',
'namespace' => 'humhub\modules\blockprofilechanges',
'events' => [
[AccountController::class, AccountController::EVENT_BEFORE_ACTION, ['\humhub\modules\blockprofilechanges\Events', 'onControllerAction']],
[AccountMenu::class, AccountMenu::EVENT_BEFORE_RUN, ['\humhub\modules\blockprofilechanges\Events', 'onAccountMenu']],
[AccountProfileMenu::class, AccountProfileMenu::EVENT_BEFORE_RUN, ['\humhub\modules\blockprofilechanges\Events', 'onAccountProfileMenu']]
]
];
?>