add 'item_get_events' hook for plugins which need to add event to core type

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@137 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
remicollet
2010-02-22 12:41:44 +00:00
parent 02f35718e2
commit c56d206aa5
2 changed files with 7 additions and 0 deletions

View File

@ -684,4 +684,8 @@ function plugin_example_AssignToTicket($types) {
return $types;
}
function plugin_example_add_event(NotificationTargetTicket $target) {
$target->events['plugin_example'] = "Example event";
logDebug("plugin_example_add_event",$target->events);
}
?>