-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.php
23 lines (21 loc) · 1.3 KB
/
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
<?php
use humhub\modules\darkMode\Events;
use humhub\widgets\LayoutAddons;
use humhub\modules\admin\models\forms\DesignSettingsForm;
use humhub\widgets\NotificationArea;
use humhub\components\ModuleManager;
use humhub\modules\user\widgets\AccountSettingsMenu;
use yii\base\Event;
return [
'id' => 'dark-mode',
'class' => 'humhub\modules\darkMode\Module',
'namespace' => 'humhub\modules\darkMode',
'events' => [
['class' => NotificationArea::class, 'event' => NotificationArea::EVENT_INIT, 'callback' => [Events::class, 'onNotificationAddonInit']],
['class' => LayoutAddons::class, 'event' => LayoutAddons::EVENT_INIT, 'callback' => [Events::class, 'onLayoutAddonsInit']],
['class' => DesignSettingsForm::class, 'event' => DesignSettingsForm::EVENT_AFTER_VALIDATE, 'callback' => [Events::class, 'onDesignSettingForm']],
['class' => ModuleManager::class, 'event' => ModuleManager::EVENT_AFTER_MODULE_ENABLE, 'callback' => [Events::class, 'onAfterModuleEnabled']],
['class' => ModuleManager::class, 'event' => ModuleManager::EVENT_BEFORE_MODULE_DISABLE, 'callback' => [Events::class, 'onBeforeModuleDisabled']],
['class' => AccountSettingsMenu::class, 'event' => AccountSettingsMenu::EVENT_INIT, 'callback' => [Events::class, 'onAccountSettingsMenuInit']]
]
];