-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelgg-plugin.php
More file actions
46 lines (45 loc) · 901 Bytes
/
elgg-plugin.php
File metadata and controls
46 lines (45 loc) · 901 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
return [
'plugin' => [
'version' => '7.0.1',
],
'entities' => [
[
'type' => 'object',
'subtype' => 'entity_attachment',
'class' => \EntityAttachment::class,
'capabilities' => [
'commentable' => false,
],
],
],
'actions' => [
'entity_attachments/add' => [],
'entity_attachments/sort' => [],
],
'events' => [
'register' => [
'menu:entity' => [
'ColdTrick\EntityAttachments\Menus\Entity::makeDeletePrimaryAction' => [],
],
],
'seeds' => [
'database' => [
'ColdTrick\EntityAttachments\Seeder::register' => ['priority' => 600],
],
],
'view_vars' => [
'object/elements/full' => [
'ColdTrick\EntityAttachments\Views::addAttachments' => [],
],
],
],
'view_extensions' => [
'elgg.css' => [
'entity_attachments/list.css' => [],
],
],
'view_options' => [
'forms/entity_attachments/add' => ['ajax' => true],
],
];