From 1aa2d2b2621f1c52da8c377e6cbe5e7566b3b609 Mon Sep 17 00:00:00 2001 From: moyooo Date: Fri, 18 May 2007 21:14:42 +0000 Subject: [PATCH] Modif mineure git-svn-id: https://forge.glpi-project.org/svn/example/trunk@24 349b9182-4a13-0410-896f-e5e9767dd1b3 --- index.php | 2 -- setup.php | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 29abdf2..5f9c2cb 100755 --- a/index.php +++ b/index.php @@ -43,8 +43,6 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){ helpHeader("TITRE", $_SERVER['PHP_SELF']); } -$NEEDED_ITEMS=array("search","printer","contract","infocom"); - checkRight("computer","r"); commonHeader($LANG["title"][8],$_SERVER['PHP_SELF'],"plugin","example"); diff --git a/setup.php b/setup.php index 8a1eced..9de0363 100755 --- a/setup.php +++ b/setup.php @@ -106,7 +106,9 @@ function plugin_example_getSearchOption(){ global $LANGEXAMPLE; $sopt=array(); + // Part header $sopt[PLUGIN_EXAMPLE_TYPE]['common']="Header Needed"; + $sopt[PLUGIN_EXAMPLE_TYPE][1]['table']='glpi_plugin_example'; $sopt[PLUGIN_EXAMPLE_TYPE][1]['field']='name'; $sopt[PLUGIN_EXAMPLE_TYPE][1]['linkfield']='name'; @@ -120,6 +122,7 @@ function plugin_example_getSearchOption(){ return $sopt; } + function plugin_example_addLeftJoin($type,$ref_table,$new_table,$linkfield){ switch ($new_table){ case "glpi_droprodown_plugin_example" :