From 5d9a90f2813b9a95cf146641f53537331f7406ab Mon Sep 17 00:00:00 2001 From: remicollet Date: Sat, 18 Apr 2009 14:36:29 +0000 Subject: [PATCH] [examples] comment for massive actions (ref to core 8192 commit) git-svn-id: https://forge.glpi-project.org/svn/example/trunk@74 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hook.php b/hook.php index dbcd6fd..846047a 100644 --- a/hook.php +++ b/hook.php @@ -234,12 +234,14 @@ function plugin_example_addOrderBy($type,$ID,$order,$key=0){ function plugin_example_MassiveActions($type){ global $LANG; switch ($type){ - // New action for core type : name = plugin_PLUGINNAME_actionname + // New action for core and other plugin types : name = plugin_PLUGINNAME_actionname case COMPUTER_TYPE : return array( "plugin_example_DoIt"=>"plugin_example_DoIt", ); break; + + // Actions for types provided by the plugin case PLUGIN_EXAMPLE_TYPE : return array( // GLPI core one