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" :