forked from StevenJoynt/HumHub-Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
30 lines (27 loc) · 767 Bytes
/
config.php
File metadata and controls
30 lines (27 loc) · 767 Bytes
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
<?php
use sij\humhub\modules\sponsor\Events;
use humhub\modules\user\widgets\ProfileSidebar;
use humhub\modules\user\models\Invite;
use humhub\modules\user\models\forms\Registration;
return [
'id' => 'sponsor',
'class' => 'sij\humhub\modules\sponsor\Module',
'namespace' => 'sij\humhub\modules\sponsor',
'events' => [
[
'class' => ProfileSidebar::class,
'event' => ProfileSidebar::EVENT_INIT,
'callback' => [Events::class, 'onProfileSidebarInit']
],
[
'class' => Invite::class,
'event' => Invite::EVENT_AFTER_INSERT,
'callback' => [Events::class, 'onAfterInsertInvite']
],
[
'class' => Registration::class,
'event' => Registration::EVENT_AFTER_REGISTRATION,
'callback' => [Events::class, 'onAfterRegistration']
],
],
];