diff --git a/index.php b/index.php
index 47e1197..ed42a00 100755
--- a/index.php
+++ b/index.php
@@ -39,7 +39,7 @@ define('GLPI_ROOT', '../..');
include (GLPI_ROOT . "/inc/includes.php");
if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
- commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
+ commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname");
} else {
helpHeader("TITRE", $_SERVER['PHP_SELF']);
}
diff --git a/setup.php b/setup.php
index 047630b..fcf42f1 100755
--- a/setup.php
+++ b/setup.php
@@ -62,10 +62,14 @@ function plugin_init_example() {
// Display a menu entry ?
if (plugin_example_haveTypeRight(PLUGIN_EXAMPLE_TYPE,'r')) { // Right set in change_profile hook
$PLUGIN_HOOKS['menu_entry']['example'] = true;
- $PLUGIN_HOOKS['submenu_entry']['example']['add'] = 'example.form.php';
- $PLUGIN_HOOKS['submenu_entry']['example']["
"] = 'index.php';
- $PLUGIN_HOOKS['submenu_entry']['example'][$LANG['plugin_example']["test"]] = 'index.php';
- $PLUGIN_HOOKS['submenu_entry']['example']['config'] = 'index.php';
+
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['title']="Search";
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['page']='index.php';
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['search']='index.php';
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['add'] = 'example.form.php';
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']['config'] = 'index.php';
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links']["
"] = 'index.php';
+ $PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links'][$LANG['plugin_example']["test"]] = 'index.php';
$PLUGIN_HOOKS["helpdesk_menu_entry"]['example'] = true;
}