sousmenu pour les plugins

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@14 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2007-03-02 00:24:51 +00:00
parent 80158528f8
commit 5f2aaf0bf8
2 changed files with 4 additions and 1 deletions

View File

@ -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']);

View File

@ -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";