add example for import_item and autoinventory_information HOOKS

This commit is contained in:
François Legastelois
2016-08-05 11:07:20 +02:00
parent 10b63cf645
commit 5046de969e
2 changed files with 66 additions and 0 deletions

View File

@ -186,6 +186,14 @@ function plugin_init_example() {
$PLUGIN_HOOKS['pre_show_item']['example'] = array( 'PluginExampleShowtabitem', 'pre_show_item' );
$PLUGIN_HOOKS['post_show_item']['example'] = array( 'PluginExampleShowtabitem', 'post_show_item' );
// declare this plugin as an import plugin for Computer itemtype
$PLUGIN_HOOKS['import_item']['exemple'] = array('Computer' => array('Plugin'));
// add additional informations on Computer::showForm
$PLUGIN_HOOKS['autoinventory_information']['exemple'] = array(
'Computer' => array('PluginExampleComputer', 'showInfo')
);
}