From 1daf2a0372f24e84292270ff1f09be492ed47712 Mon Sep 17 00:00:00 2001 From: remicollet Date: Tue, 27 Mar 2012 08:03:34 +0000 Subject: [PATCH] pass 'searchtype' to addWhere hook git-svn-id: https://forge.glpi-project.org/svn/example/trunk@191 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook.php b/hook.php index 9047a35..a459328 100644 --- a/hook.php +++ b/hook.php @@ -180,7 +180,7 @@ function plugin_example_forceGroupBy($type) { } -function plugin_example_addWhere($link,$nott,$type,$ID,$val) { +function plugin_example_addWhere($link, $nott, $type, $ID, $val, $searchtype) { $searchopt = &Search::getOptions($type); $table = $searchopt[$ID]["table"]; @@ -359,7 +359,7 @@ function plugin_example_MassiveActionsProcess($data) { return array('ok' => $ok, 'ko' => $ko, 'noright' => $noright); - + }