File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -644,4 +644,13 @@ function plugin_example_Status($param) {
644
644
echo "\n" ;
645
645
return $ param ;
646
646
}
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
+
647
656
?>
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ function plugin_init_example() {
169
169
170
170
// CSRF compliance : All actions must be done via POST and forms closed by Html::closeForm();
171
171
$ 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 " ;
172
175
}
173
176
174
177
You can’t perform that action at this time.
0 commit comments