-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
28 lines (26 loc) · 965 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
26
27
28
<?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\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'],
],
],
];