mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Merge pull request #1 from wawax/infocom_hook
Adds hook on infocom form
This commit is contained in:
commit
017a6aa50b
8
hook.php
8
hook.php
@ -659,4 +659,10 @@ function plugin_example_display_login() {
|
|||||||
echo "</div>";
|
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_central']['example'] = "plugin_example_display_central";
|
||||||
$PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
|
$PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
|
||||||
|
$PLUGIN_HOOKS['infocom']['example'] = "plugin_example_infocom_hook";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user