-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.php
More file actions
40 lines (33 loc) · 1002 Bytes
/
Copy pathsetup.php
File metadata and controls
40 lines (33 loc) · 1002 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
<?php
use GlpiPlugin\Pokedex\Pokemon;
use GlpiPlugin\Pokedex\PokedexProfile;
use GlpiPlugin\Pokedex\Api\PokedexController;
use Glpi\Plugin\Hooks;
define('PLUGIN_POKEDEX_VERSION', '1.1.0');
function plugin_version_pokedex()
{
return [
'name' => 'Pokedex',
'version' => PLUGIN_POKEDEX_VERSION,
'author' => 'Pokedex Team',
'license' => 'GPLv3+',
'requirements' => [
'glpi' => [
'min' => '11.0.0',
'max' => '11.99.99',
],
],
];
}
function plugin_init_pokedex()
{
global $PLUGIN_HOOKS;
$PLUGIN_HOOKS[Hooks::MENU_TOADD]['pokedex'] = ['tools' => Pokemon::class];
$PLUGIN_HOOKS[Hooks::ADD_CSS]['pokedex'][] = 'css/pokemon-card.css';
$PLUGIN_HOOKS[Hooks::API_CONTROLLERS]['pokedex'] = [PokedexController::class];
Plugin::registerClass(PokedexProfile::class, ['addtabon' => 'Profile']);
}
function plugin_pokedex_check_config()
{
return true;
}