mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
implements filter_actors hook
This commit is contained in:

committed by
GitHub

parent
4f6d2291e3
commit
44fe7d6b57
@ -31,6 +31,8 @@
|
||||
// Purpose of file:
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
use Glpi\Plugin\Hooks;
|
||||
|
||||
define ('PLUGIN_EXAMPLE_VERSION', '7.1');
|
||||
|
||||
/**
|
||||
@ -202,13 +204,15 @@ function plugin_init_example() {
|
||||
$PLUGIN_HOOKS['post_item_form']['example'] = ['PluginExampleItemForm', 'postItemForm'];
|
||||
|
||||
// declare this plugin as an import plugin for Computer itemtype
|
||||
$PLUGIN_HOOKS['import_item']['exemple'] = ['Computer' => ['Plugin']];
|
||||
$PLUGIN_HOOKS['import_item']['example'] = ['Computer' => ['Plugin']];
|
||||
|
||||
// add additional informations on Computer::showForm
|
||||
$PLUGIN_HOOKS['autoinventory_information']['exemple'] = [
|
||||
$PLUGIN_HOOKS['autoinventory_information']['example'] = [
|
||||
'Computer' => ['PluginExampleComputer', 'showInfo']
|
||||
];
|
||||
|
||||
$PLUGIN_HOOKS[Hooks::FILTER_ACTORS]['example'] = "plugin_example_filter_actors";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user