-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
40 lines (37 loc) · 1.33 KB
/
config.php
File metadata and controls
40 lines (37 loc) · 1.33 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Menu Manager
* @link https://github.com/cuzy-app/menu-manager
* @license https://github.com/cuzy-app/menu-manager/blob/master/docs/LICENCE.md
* @author [Marc FARRE](https://marc.fun) for [CUZY.APP](https://www.cuzy.app)
*/
use humhub\modules\menuManager\Events;
use humhub\modules\space\widgets\Chooser;
use humhub\widgets\TopMenu;
return [
'id' => 'menu-manager',
'class' => humhub\modules\menuManager\Module::class,
'namespace' => 'humhub\modules\menuManager',
'events' => [
[
'class' => TopMenu::class,
'event' => TopMenu::EVENT_INIT, // To add entries (otherwise, entries are not marked as active)
'callback' => [Events::class, 'onTopMenuInit'],
],
[
'class' => TopMenu::class,
'event' => TopMenu::EVENT_BEFORE_RUN, // To remove entries (otherwise, entries from other modules might not be removed)
'callback' => [Events::class, 'onTopMenuBeforeRun'],
],
[
'class' => Chooser::class,
'event' => Chooser::EVENT_BEFORE_RUN,
'callback' => [Events::class, 'onSpaceChooserBeforeRun'],
],
[
'class' => Chooser::class,
'event' => Chooser::EVENT_CREATE,
'callback' => [Events::class, 'onSpaceChooserCreate'],
],
],
];