avance ssous-menu

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@15 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2007-03-02 14:58:45 +00:00
parent 5f2aaf0bf8
commit 8439a71cde

View File

@ -37,13 +37,14 @@
// Init the hooks of the plugins -Needed // Init the hooks of the plugins -Needed
function plugin_init_example() { function plugin_init_example() {
global $PLUGIN_HOOKS; global $PLUGIN_HOOKS,$LANGEXAMPLE,$CFG_GLPI;
// 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']['add'] = 'index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['search'] = 'index.php'; $PLUGIN_HOOKS['submenu_entry']['example']["<img src='".$CFG_GLPI["root_doc"]."/pics/menu_showall.png' title='".$LANGEXAMPLE["test"]."' alt='".$LANGEXAMPLE["test"]."'>"] = 'index.php';
$PLUGIN_HOOKS['submenu_entry']['example']['Specific Link'] = 'index.php'; $PLUGIN_HOOKS['submenu_entry']['example'][$LANGEXAMPLE["test"]] = '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";