mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Multiple redirect for plugins see #2635
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@154 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
e9366fba35
commit
da883239d5
@ -118,8 +118,13 @@ function plugin_init_example() {
|
||||
|
||||
$PLUGIN_HOOKS['item_transfer']['example'] = 'plugin_item_transfer_example';
|
||||
|
||||
//redirect appel http://localhost/glpi/index.php?redirect=plugin_example_2 (ID 2 du form)
|
||||
$PLUGIN_HOOKS['redirect_page']['example'] = 'example.form.php';
|
||||
//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
|
||||
$PLUGIN_HOOKS['planning_populate']['example'] = 'plugin_planning_populate_example';
|
||||
|
Loading…
x
Reference in New Issue
Block a user