mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-05 02:18:42 +02:00
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:
parent
80158528f8
commit
5f2aaf0bf8
@ -40,7 +40,7 @@ define('GLPI_ROOT', '../..');
|
|||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
if ($_SESSION["glpiactiveprofile"]["interface"] == "central")
|
if ($_SESSION["glpiactiveprofile"]["interface"] == "central")
|
||||||
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins");
|
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
|
||||||
else
|
else
|
||||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||||
|
|
||||||
|
@ -41,6 +41,9 @@ function plugin_init_example() {
|
|||||||
|
|
||||||
// Display a menu entry ?
|
// Display a menu entry ?
|
||||||
$PLUGIN_HOOKS['menu_entry']['example'] = true;
|
$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;
|
$PLUGIN_HOOKS["helpdesk_menu_entry"]['example'] = true;
|
||||||
// Setup/Update functions
|
// Setup/Update functions
|
||||||
$PLUGIN_HOOKS['setup']['example'] = "plugin_setup_example";
|
$PLUGIN_HOOKS['setup']['example'] = "plugin_setup_example";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user