From d0e0fdcebff5ae87a2d31a56e6f2ef9e7129c06c Mon Sep 17 00:00:00 2001 From: Alexandre Delaunay Date: Fri, 20 Nov 2015 15:49:07 +0100 Subject: [PATCH] add new display_[login|central] hooks --- hook.php | 9 +++++++++ setup.php | 3 +++ 2 files changed, 12 insertions(+) diff --git a/hook.php b/hook.php index 1ca5936..71184e3 100644 --- a/hook.php +++ b/hook.php @@ -644,4 +644,13 @@ function plugin_example_Status($param) { echo "\n"; 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"); +} + ?> \ No newline at end of file diff --git a/setup.php b/setup.php index f5adec5..678b36d 100755 --- a/setup.php +++ b/setup.php @@ -169,6 +169,9 @@ function plugin_init_example() { // CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm(); $PLUGIN_HOOKS['csrf_compliant']['example'] = true; + + $PLUGIN_HOOKS['display_central']['example'] = "plugin_example_display_central"; + $PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login"; }