Removing login_form hook, plugins can now use template_construct hook and add an...
[squirrelmail.git] / templates / default_advanced / login.tpl
index cf3441ccc241de4d97ff63946f84e0accfe50074..d7f966a3d27feee61af1ade9d479e3c1087ca024 100644 (file)
@@ -15,7 +15,8 @@
  *      $login_extra        - Some extra form fields needed by SquirrelMail
  *                            for the login.  Template designers SHOULD ALWAYS
  *                            INCLUDE this value somewhere in the form.
- *      $plugin_extra       - Extra table row(s) that may be added by plugin(s).
+ *      $plugin_output      - An array of extra output that may be added by 
+ *                            plugin(s).
  * 
  * @copyright © 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
@@ -71,7 +72,7 @@ extract($t);
       <?php echo $login_extra; ?>
      </td>
     </tr>
-    <?php echo $plugin_extra; ?>
+    <?php if (!empty($plugin_output['login_form'])) echo $plugin_output['login_form']; ?>
     <tr>
      <td class="loginSubmit" colspan="2">
       <input type="image" src="<?php echo getIconPath($icon_theme_path, 'login_submit.png', _("Login"), _("Login")); ?>" alt="<?php echo _("Login"); ?>" />