-
Notifications
You must be signed in to change notification settings - Fork 1
/
elgg-plugin.php
executable file
·40 lines (39 loc) · 1 KB
/
elgg-plugin.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
29
30
31
32
33
34
35
36
37
38
39
40
<?php
return [
'bootstrap' => \hypeJunction\Notifications\Bootstrap::class,
'actions' => [
'admin/notifications/methods' => [
'access' => 'admin',
],
'admin/notifications/test_email' => [
'access' => 'admin',
],
'notifications/mark_all_read' => [],
'notifications/mark_read' => [],
'notifications/settings/digest' => [],
'hypeNotifications/settings/save' => [
'access' => 'admin',
],
],
'routes' => [
'collection:notification:owner' => [
'path' => '/notifications/all/{username?}',
'resource' => 'notifications/all',
],
'view:notification' => [
'path' => '/notifications/view/{id}',
'resource' => 'notifications/view',
],
'settings:notification:digest' => [
'path' => '/notifications/settings/digest/{username?}',
'resource' => 'notifications/settings/digest',
],
'ajax:notifications:ticker' => [
'path' => '/notifications/ticker',
'resource' => 'notifications/ticker',
],
],
'upgrades' => [
\hypeJunction\Notifications\MigrateNotifier::class,
],
];