Split out functionality that gathers system specs
[squirrelmail.git] / plugins / change_password / backend / template.php
index 2669fc2248ad0200887070b0bd545d9d745d9b51..7d818be6d757c9644079515f70f626149d9466c9 100644 (file)
@@ -1,11 +1,17 @@
 <?php
-/*
- This is a template for a password changing mechanism. Currently,
- this contains two parts: the first is to register your function
- in the squirrelmail_plugin_hooks global, and the second is
- the function that does the actual changing.
-
- Replace the word template everywhere with a name for your backend.
+/**
+ * Change password backend template
+ *
+ * This is a template for a password changing mechanism. Currently,
+ * this contains two parts: the first is to register your function
+ * in the squirrelmail_plugin_hooks global, and the second is
+ * the function that does the actual changing.
+ *
+ * Replace the word template everywhere with a name for your backend.
+ *
+ * @version $Id$
+ * @package plugins
+ * @subpackage change_password
  */
 
 /**
 global $squirrelmail_plugin_hooks;
 $squirrelmail_plugin_hooks['change_password_dochange']['template'] = 
        'cpw_template_dochange';
+$squirrelmail_plugin_hooks['change_password_init']['template'] = 
+       'cpw_template_init';
+
+
+/**
+ * Use this function to do any backend-specific initialization,
+ * e.g. checking requirements, before the password change form
+ * is displayed to the user.
+ */
+function cpw_template_init()
+{
+
+}
+
 
 /**
  * This is the function that is specific to your backend. It takes