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:
@ -40,11 +40,10 @@ class PluginExampleNotificationTargetExample extends NotificationTarget {
|
||||
return array ('alert' => 'alert example');
|
||||
}
|
||||
|
||||
function getDatasForTemplate($event,$options=array()) {
|
||||
function getDatasForTemplate($event, $options=array()) {
|
||||
global $DB, $LANG, $CFG_GLPI;
|
||||
|
||||
$tpldatas = array();
|
||||
return $tpldatas;
|
||||
$this->datas['##example.name##'] = 'Example';
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user