Skip to content

Commit d0e0fdc

Browse files
committed
add new display_[login|central] hooks
1 parent fc3b656 commit d0e0fdc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

hook.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,4 +644,13 @@ function plugin_example_Status($param) {
644644
echo "\n";
645645
return $param;
646646
}
647+
648+
function plugin_example_display_central() {
649+
echo __("Plugin example displays on central page", "example");
650+
}
651+
652+
function plugin_example_display_login() {
653+
echo __("Plugin example displays on login page", "example");
654+
}
655+
647656
?>

setup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ function plugin_init_example() {
169169

170170
// CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm();
171171
$PLUGIN_HOOKS['csrf_compliant']['example'] = true;
172+
173+
$PLUGIN_HOOKS['display_central']['example'] = "plugin_example_display_central";
174+
$PLUGIN_HOOKS['display_login']['example'] = "plugin_example_display_login";
172175
}
173176

174177

0 commit comments

Comments
 (0)