mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
rename hook pre_item_add2 => post_prepareadd
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@174 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
12
setup.php
12
setup.php
@ -91,12 +91,12 @@ function plugin_init_example() {
|
||||
$PLUGIN_HOOKS['item_empty']['example'] = array('Computer' => 'plugin_item_empty_example');
|
||||
|
||||
// Example using a method in class
|
||||
$PLUGIN_HOOKS['pre_item_add']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'pre_item_add_example'));
|
||||
$PLUGIN_HOOKS['pre_item_add2']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'pre_item_add2_example'));
|
||||
$PLUGIN_HOOKS['item_add']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'item_add_example'));
|
||||
$PLUGIN_HOOKS['pre_item_add']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'pre_item_add_computer'));
|
||||
$PLUGIN_HOOKS['post_prepareadd']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'post_prepareadd_computer'));
|
||||
$PLUGIN_HOOKS['item_add']['example'] = array('Computer' => array('PluginExampleExample',
|
||||
'item_add_computer'));
|
||||
|
||||
$PLUGIN_HOOKS['pre_item_delete']['example'] = array('Computer' => 'plugin_pre_item_delete_example');
|
||||
$PLUGIN_HOOKS['item_delete']['example'] = array('Computer' => 'plugin_item_delete_example');
|
||||
|
Reference in New Issue
Block a user