mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
add new display_[login|central] hooks
This commit is contained in:
parent
fc3b656a96
commit
d0e0fdcebf
9
hook.php
9
hook.php
@ -644,4 +644,13 @@ function plugin_example_Status($param) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
return $param;
|
return $param;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function plugin_example_display_central() {
|
||||||
|
echo __("Plugin example displays on central page", "example");
|
||||||
|
}
|
||||||
|
|
||||||
|
function plugin_example_display_login() {
|
||||||
|
echo __("Plugin example displays on login page", "example");
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
@ -169,6 +169,9 @@ function plugin_init_example() {
|
|||||||
|
|
||||||
// CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm();
|
// CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm();
|
||||||
$PLUGIN_HOOKS['csrf_compliant']['example'] = true;
|
$PLUGIN_HOOKS['csrf_compliant']['example'] = true;
|
||||||
|
|
||||||
|
$PLUGIN_HOOKS['display_central']['example'] = "plugin_example_display_central";
|
||||||
|
$PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user