From 5f2aaf0bf8f1295ae6eb951ba69e9dc60a7bd5f9 Mon Sep 17 00:00:00 2001 From: moyooo Date: Fri, 2 Mar 2007 00:24:51 +0000 Subject: [PATCH] sousmenu pour les plugins git-svn-id: https://forge.glpi-project.org/svn/example/trunk@14 349b9182-4a13-0410-896f-e5e9767dd1b3 --- index.php | 2 +- setup.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 2f19dc7..3014031 100755 --- a/index.php +++ b/index.php @@ -40,7 +40,7 @@ define('GLPI_ROOT', '../..'); include (GLPI_ROOT . "/inc/includes.php"); if ($_SESSION["glpiactiveprofile"]["interface"] == "central") - commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins"); + commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example"); else helpHeader("TITRE", $_SERVER['PHP_SELF']); diff --git a/setup.php b/setup.php index 66b2f75..1753909 100755 --- a/setup.php +++ b/setup.php @@ -41,6 +41,9 @@ function plugin_init_example() { // 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["helpdesk_menu_entry"]['example'] = true; // Setup/Update functions $PLUGIN_HOOKS['setup']['example'] = "plugin_setup_example";