From 1c0e3ad48549b529647341b87feecfe046c0c134 Mon Sep 17 00:00:00 2001 From: moyooo Date: Fri, 2 May 2008 22:14:49 +0000 Subject: [PATCH] [example] add force group by git-svn-id: https://forge.glpi-project.org/svn/example/trunk@48 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/setup.php b/setup.php index de1c708..52f6d36 100755 --- a/setup.php +++ b/setup.php @@ -221,6 +221,17 @@ function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){ } + +function plugin_example_forceGroupBy($type){ + switch ($type){ + case PLUGIN_EXAMPLE_TYPE : + // Force add GROUP BY IN REQUEST + return true; + break; + } + return false; +} + function plugin_example_addWhere($link,$nott,$type,$ID,$val){ global $SEARCH_OPTION;