From 396028a4af3b2823e500430c002a0570e16d85da Mon Sep 17 00:00:00 2001 From: tsmr Date: Tue, 14 Apr 2009 21:27:06 +0000 Subject: [PATCH] [example] adding mailing heading git-svn-id: https://forge.glpi-project.org/svn/example/trunk@73 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hook.php b/hook.php index 09c3798..dbcd6fd 100644 --- a/hook.php +++ b/hook.php @@ -555,6 +555,11 @@ function plugin_get_headings_example($type,$ID,$withtemplate){ 1 => "Test PLugin", ); break; + case "mailing": + return array( + 1 => "Test PLugin", + ); + break; } return false; @@ -588,6 +593,11 @@ function plugin_headings_actions_example($type){ 1 => "plugin_headings_example", ); break; + case "mailing" : + return array( + 1 => "plugin_headings_example", + ); + break; } return false; @@ -622,6 +632,9 @@ function plugin_headings_example($type,$ID,$withtemplate=0){ echo ""; echo ""; break; + case "mailing": + echo "Plugin mailing action ".$LANG['plugin_example']["test"]; + break; default : echo "Plugin function with headings TYPE=".$type." ID=".$ID; break;