-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
36 lines (31 loc) · 928 Bytes
/
setup.php
File metadata and controls
36 lines (31 loc) · 928 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
<?php
function plugin_init_responsiva() {
global $PLUGIN_HOOKS;
$PLUGIN_HOOKS['csrf_compliant']['responsiva'] = true;
$PLUGIN_HOOKS['menu_entry']['responsiva'] = false;
$PLUGIN_HOOKS['add_css']['responsiva'] = [];
$PLUGIN_HOOKS['add_javascript']['responsiva'] = [];
// Añadir opción de exportación PDF
$PLUGIN_HOOKS['plugin_item_add_actions']['responsiva'] = [
'Ticket' => 'plugin_responsiva_add_actions'
];
}
function plugin_version_responsiva() {
return [
'name' => 'Responsiva PDF',
'version' => '1.0.0',
'author' => 'Tu Nombre',
'license' => 'GPLv3',
'requirements' => [
'glpi' => [
'min' => '10.0.0'
]
]
];
}
function plugin_responsiva_check_prerequisites() {
return true;
}
function plugin_responsiva_check_config() {
return true;
}