mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-27 22:48:43 +02:00
Add hook on infocom form
This commit is contained in:
8
hook.php
8
hook.php
@ -659,4 +659,10 @@ function plugin_example_display_login() {
|
||||
echo "</div>";
|
||||
}
|
||||
|
||||
?>
|
||||
function plugin_example_infocom_hook($params) {
|
||||
echo "<tr><th colspan='4'>";
|
||||
echo __("Plugin example displays on central page", "example");
|
||||
echo "</th></tr>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
@ -177,6 +177,7 @@ function plugin_init_example() {
|
||||
|
||||
$PLUGIN_HOOKS['display_central']['example'] = "plugin_example_display_central";
|
||||
$PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
|
||||
$PLUGIN_HOOKS['infocom']['example'] = "plugin_example_infocom_hook";
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user