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:
remicollet
2010-02-24 07:18:23 +00:00
parent b218f3ff0d
commit 4f57c9b397
3 changed files with 11 additions and 6 deletions

View File

@ -692,8 +692,11 @@ function plugin_example_AssignToTicket($types) {
return $types;
}
function plugin_example_add_event(NotificationTargetTicket $target) {
function plugin_example_get_events(NotificationTargetTicket $target) {
$target->events['plugin_example'] = "Example event";
logDebug("plugin_example_add_event",$target->events);
}
function plugin_example_get_datas(NotificationTargetTicket $target) {
$target->datas['##ticket.example##'] = "Example datas";
}
?>