mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
use 4th menu entry
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@102 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
5584c44e58
commit
63931aeb3f
@ -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']);
|
||||
}
|
||||
|
12
setup.php
12
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']["<img src='".$CFG_GLPI["root_doc"]."/pics/menu_showall.png' title='".$LANG['plugin_example']["test"]."' alt='".$LANG['plugin_example']["test"]."'>"] = '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']["<img src='".$CFG_GLPI["root_doc"]."/pics/menu_showall.png' title='".$LANG['plugin_example']["test"]."' alt='".$LANG['plugin_example']["test"]."'>"] = 'index.php';
|
||||
$PLUGIN_HOOKS['submenu_entry']['example']['options']['optionname']['links'][$LANG['plugin_example']["test"]] = 'index.php';
|
||||
|
||||
$PLUGIN_HOOKS["helpdesk_menu_entry"]['example'] = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user