X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fdemo%2Fsetup.php;h=5c99b1b7dbc9dc3fc85277d8bd3c901fbc4aac95;hb=db962a6055db4fcfc25aa35689cbade25fbc564f;hp=0d92dc0ec59cbb6486caf051e79d2c5286a32dbd;hpb=e04de0b9d163343c246f327b27edbd307a9a1029;p=squirrelmail.git diff --git a/plugins/demo/setup.php b/plugins/demo/setup.php index 0d92dc0e..5c99b1b7 100644 --- a/plugins/demo/setup.php +++ b/plugins/demo/setup.php @@ -28,10 +28,6 @@ function squirrelmail_plugin_init_demo() $squirrelmail_plugin_hooks['login_cookie']['demo'] = 'demo_login_cookie'; -//FIXME: not all of the above hooks are yet implemented below - $squirrelmail_plugin_hooks['login_top']['demo'] - = 'demo_login_top'; - //FIXME: not all of the above hooks are yet implemented below $squirrelmail_plugin_hooks['login_bottom']['demo'] = 'demo_login_bottom'; @@ -43,6 +39,8 @@ function squirrelmail_plugin_init_demo() $squirrelmail_plugin_hooks['optpage_register_block']['demo'] = 'demo_option_link'; + $squirrelmail_plugin_hooks['configtest']['demo'] + = 'demo_check_configuration'; } @@ -109,3 +107,18 @@ function demo_option_link() +/** + * Validate that this plugin is configured correctly + * + * @return boolean Whether or not there was a + * configuration error for this plugin. + * + */ +function demo_check_configuration() +{ + include_once(SM_PATH . 'plugins/demo/functions.php'); + return demo_check_configuration_do(); +} + + +