forked from humhub/polls
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.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\space\widgets\Menu;
use humhub\modules\user\models\User;
use humhub\commands\IntegrityController;
use humhub\modules\content\widgets\WallEntryControls;
use humhub\modules\user\widgets\ProfileMenu;
/** @noinspection MissedFieldInspection */
return [
'id' => 'polls',
'class' => 'humhub\modules\polls\Module',
'namespace' => 'humhub\modules\polls',
'events' => [
['class' => WallEntryControls::class, 'event' => WallEntryControls::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onWallEntryControlsInit']],
['class' => User::class, 'event' => User::EVENT_BEFORE_DELETE, 'callback' => ['humhub\modules\polls\Events', 'onUserDelete']],
['class' => Menu::class, 'event' => Menu::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onSpaceMenuInit']],
['class' => ProfileMenu::class, 'event' => ProfileMenu::EVENT_INIT, 'callback' => ['humhub\modules\polls\Events', 'onProfileMenuInit']],
['class' => IntegrityController::class, 'event' => IntegrityController::EVENT_ON_RUN, 'callback' => ['humhub\modules\polls\Events', 'onIntegrityCheck']],
['class' => 'humhub\modules\installer\controllers\ConfigController', 'event' => 'install_sample_data', 'callback' => ['humhub\modules\polls\Events', 'onSampleDataInstall']],
]
];
?>