-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
elgg-plugin.php
47 lines (46 loc) · 924 Bytes
/
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
41
42
43
44
45
46
47
<?php
return [
'plugin' => [
'version' => '8.0',
'dependencies' => [
'pages' => [
'position' => 'after',
],
],
],
'settings' => [
'enable_export' => 0,
],
'actions' => [
'pages/export' => ['access' => 'public'],
'pages/reorder' => [],
],
'events' => [
'entity:url' => [
'object:widget' => [
'\ColdTrick\PagesTools\Widgets::widgetURL' => [],
],
],
'register' => [
'menu:entity' => [
'\ColdTrick\PagesTools\Menus\Entity::registerExportPage' => [],
],
'menu:pages_nav' => [
'\ColdTrick\PagesTools\Menus\PagesNav::orderPagesNav' => ['priority' => 999],
],
],
],
'view_options' => [
'forms/pages/export' => ['ajax' => true],
],
'widgets' => [
'index_pages' => [
'context' => ['index'],
'multiple' => true,
],
// overrule default pages widget, to add group support
'pages' => [
'context' => ['profile', 'dashboard', 'groups'],
],
],
];