Added configtest hook
[squirrelmail.git] / plugins / demo / functions.php
index 230df743c1f71f4579a6ff6b63c755744b45b7c7..04bacc282e805d5625e9abf213620e2a99ffa9f2 100644 (file)
@@ -57,3 +57,28 @@ function demo_option_link_do()
 
 
 
 
 
 
+/**
+  * Validate that this plugin is configured correctly
+  *
+  * @return boolean Whether or not there was a
+  *                 configuration error for this plugin.
+  *
+  */
+function demo_check_configuration_do()
+{
+
+   // test for something that this plugin requires, print error if
+   // misconfigured or requirements are missing
+   //
+   if (FALSE)  // put something meaningful here
+   {
+      do_err('Demo plugin is missing something important', FALSE);
+      return TRUE;  // return FALSE if you only want to display a non-critical error
+   }
+
+   return FALSE;
+
+}
+
+
+