Skip to content

Commit b5fb88a

Browse files
AdrienClairembaulttrasher
authored andcommitted
Documentation for new "redefine_menus" hook
1 parent 5ee7d5a commit b5fb88a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/plugins/hooks.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ These hooks will work just as the :ref:`hooks with item as parameter <hook_item_
117117
// (
118118
// [_target] => /front/computer.form.php
119119
// [id] => 1
120-
// [withtemplate] =>
120+
// [withtemplate] =>
121121
// [tabnum] => 1
122122
// [itemtype] => Computer
123123
// )
@@ -179,6 +179,12 @@ Hooks that cannot be classified in above categories :)
179179
'output' => array() //output modified by rule
180180
];
181181
182+
``redefine_menus``
183+
Add, edit or remove items from the GLPI menus.
184+
185+
This hook will receive the current GLPI menus definition as an argument and must return the new definition.
186+
187+
182188
``init_session``
183189
At session initialization
184190

0 commit comments

Comments
 (0)