From 8439a71cde32b9f83fa69a6bc04d9999db675c79 Mon Sep 17 00:00:00 2001 From: moyooo Date: Fri, 2 Mar 2007 14:58:45 +0000 Subject: [PATCH] avance ssous-menu git-svn-id: https://forge.glpi-project.org/svn/example/trunk@15 349b9182-4a13-0410-896f-e5e9767dd1b3 --- setup.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.php b/setup.php index 1753909..7ab2e7b 100755 --- a/setup.php +++ b/setup.php @@ -37,13 +37,14 @@ // Init the hooks of the plugins -Needed function plugin_init_example() { - global $PLUGIN_HOOKS; + global $PLUGIN_HOOKS,$LANGEXAMPLE,$CFG_GLPI; // Display a menu entry ? $PLUGIN_HOOKS['menu_entry']['example'] = true; $PLUGIN_HOOKS['submenu_entry']['example']['add'] = 'index.php'; - $PLUGIN_HOOKS['submenu_entry']['example']['search'] = 'index.php'; - $PLUGIN_HOOKS['submenu_entry']['example']['Specific Link'] = 'index.php'; + $PLUGIN_HOOKS['submenu_entry']['example']["".$LANGEXAMPLE["test"].""] = 'index.php'; + $PLUGIN_HOOKS['submenu_entry']['example'][$LANGEXAMPLE["test"]] = 'index.php'; + $PLUGIN_HOOKS["helpdesk_menu_entry"]['example'] = true; // Setup/Update functions $PLUGIN_HOOKS['setup']['example'] = "plugin_setup_example";