mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
redirect system no more usable. Core system will be improved.
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@215 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
07f631f8b3
commit
3bf5b6dd66
10
setup.php
10
setup.php
@ -59,7 +59,7 @@ function plugin_init_example() {
|
||||
// Display a menu entry ?
|
||||
if (isset($_SESSION["glpi_plugin_example_profile"])) { // Right set in change_profile hook
|
||||
$PLUGIN_HOOKS['menu_toadd']['example'] = array('plugins' => 'PluginExampleExample',
|
||||
'utils' => 'PluginExampleExample');
|
||||
'tools' => 'PluginExampleExample');
|
||||
|
||||
// Old menu style
|
||||
// $PLUGIN_HOOKS['menu_entry']['example'] = 'front/example.php';
|
||||
@ -126,14 +126,6 @@ function plugin_init_example() {
|
||||
|
||||
$PLUGIN_HOOKS['item_transfer']['example'] = 'plugin_item_transfer_example';
|
||||
|
||||
//redirect
|
||||
// Simple redirect : http://localhost/glpi/index.php?redirect=plugin_example_2 (ID 2 du form)
|
||||
// $PLUGIN_HOOKS['redirect_page']['example'] = 'example.form.php';
|
||||
// Multiple redirect : http://localhost/glpi/index.php?redirect=plugin_example_one_2 (ID 2 du form)
|
||||
// Multiple redirect : http://localhost/glpi/index.php?redirect=plugin_example_two_2 (ID 2 du form)
|
||||
$PLUGIN_HOOKS['redirect_page']['example']['one'] = 'example.form.php';
|
||||
$PLUGIN_HOOKS['redirect_page']['example']['two'] = 'example2.form.php';
|
||||
|
||||
// function to populate planning
|
||||
// No more used since GLPI 0.84
|
||||
// $PLUGIN_HOOKS['planning_populate']['example'] = 'plugin_planning_populate_example';
|
||||
|
Loading…
x
Reference in New Issue
Block a user