The use of 'user' as a column name no longer causes errors in SquirrelMail/PostgreSQL
[squirrelmail.git] / plugins / demo / setup.php
index 0d92dc0..2fb4982 100644 (file)
@@ -2,7 +2,7 @@
 
 /**
   * SquirrelMail Demo Plugin
 
 /**
   * SquirrelMail Demo Plugin
-  * @copyright © 2006-2007 The SquirrelMail Project Team
+  * @copyright 2006-2010 The SquirrelMail Project Team
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
   * @version $Id$
   * @package plugins
   * @license http://opensource.org/licenses/gpl-license.php GNU Public License
   * @version $Id$
   * @package plugins
@@ -29,10 +29,6 @@ function squirrelmail_plugin_init_demo()
       = 'demo_login_cookie';
 
 //FIXME: not all of the above hooks are yet implemented below
       = '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';
 
    $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['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();
+}
+
+
+