Add a new hook to the plugin to enable backends to perform any
[squirrelmail.git] / plugins / change_password / backend / template.php
index 2669fc2..73bd20f 100644 (file)
 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