mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
improves getDatasForTemplate + create 'item_get_datas' hook
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@140 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -106,7 +106,10 @@ function plugin_init_example() {
|
||||
|
||||
// Add event to GLPI core itemtype, event will be raised by the plugin.
|
||||
// See plugin_example_uninstall for cleanup of notification
|
||||
$PLUGIN_HOOKS['item_get_events']['example'] = array('NotificationTargetTicket'=>'plugin_example_add_event');
|
||||
$PLUGIN_HOOKS['item_get_events']['example'] = array('NotificationTargetTicket'=>'plugin_example_get_events');
|
||||
|
||||
// Add datas to GLPI core itemtype for notifications template.
|
||||
$PLUGIN_HOOKS['item_get_datas']['example'] = array('NotificationTargetTicket'=>'plugin_example_get_datas');
|
||||
|
||||
$PLUGIN_HOOKS['item_transfer']['example'] = 'plugin_item_transfer_example';
|
||||
|
||||
|
Reference in New Issue
Block a user