XHTML fixes
[squirrelmail.git] / doc / plugin.txt
index 9f5f9a77a9ff59e0b3cf490c3ffe67005a66826b..032c3e22c3e446d1732029df0dd77ba88b4b3b50 100644 (file)
@@ -233,6 +233,8 @@ but may be out of date soon thereafter.  You never know.  ;-)
 
   Hook Name                      Found In                        Called With(#)
   ---------                      --------                        --------------
+  abook_init                     functions/addressbook.php       do_hook
+  abook_add_class                functions/addressbook.php       do_hook
   loading_constants              functions/constants.php         do_hook
   logout_error                   functions/display_messages.php  do_hook
   error_box                      functions/display_messages.php  concat_hook
@@ -306,10 +308,8 @@ but may be out of date soon thereafter.  You never know.  ;-)
   read_body_menu_top             src/read_body.php               hook_func
   read_body_menu_bottom          src/read_body.php               do_hook
   read_body_header_right         src/read_body.php               do_hook
-  html_top                       src/read_body.php               do_hook
   read_body_top                  src/read_body.php               do_hook
   read_body_bottom               src/read_body.php               do_hook
-  html_bottom                    src/read_body.php               do_hook
   login_before                   src/redirect.php                do_hook
   login_verified                 src/redirect.php                do_hook
   generic_header                 src/right_main.php              do_hook
@@ -322,12 +322,14 @@ but may be out of date soon thereafter.  You never know.  ;-)
   webmail_top                    src/webmail.php                 do_hook
   webmail_bottom                 src/webmail.php                 concat_hook
   logout_above_text              src/signout.php                 concat_hook
+  O info_bottom                  plugins/info/options.php        do_hook
    
 % = This hook is used in multiple places in the given file
 # = Called with hook type (see below)
 & = Special identity hooks (see below)
 ^ = Special attachments hook (see below)
 * = Special options hooks (see below)
+O = optional hook used by plugin
 
 
 (#) Called With
@@ -375,7 +377,7 @@ options_identities_table
    holds each identity.  The arguments to this hook are:
 
       [0] = color of table (use it like this in your plugin:
-               <tr bgcolor="<?PHP echo $info[1]?>">
+               <tr bgcolor="<?php echo $info[1]; ?>">
       [1] = is this an empty section (the one at the end of the list)?
       [2] = what is the 'post' value? (ident # or empty string if default)
 
@@ -402,7 +404,7 @@ options_identities_buttons
       function demo_identities_button(&$args)
       {
          return '<input type="submit" name="demo_button_' . $args[1]
-              . '" value="Press Me">';
+              . '" value="Press Me" />';
       }
 
 
@@ -596,6 +598,9 @@ for you.  This is the preferred method of building options lists going forward.
                         setting in the user's preferences
          caption        The text that prefaces this setting on the preferences
                         page
+         trailing_text  Text that follows a text input or select list input on
+                        the preferences page (useful for indicating units,
+                        meanings of special values, etc.)
          type           The type of INPUT element, which should be one of:
                            SMOPT_TYPE_STRING     String/text input
                            SMOPT_TYPE_STRLIST    Select list input
@@ -853,7 +858,7 @@ name):
       should always set "optpage" as a POST or GET variable with a string that
       uniquely identifies your plugin:
 
-         <input type="hidden" name="optpage" value="plugin_demo">
+         <input type="hidden" name="optpage" value="plugin_demo" />
 
       Now in your demo_save_options_do() function, do something like this:
 
@@ -976,7 +981,7 @@ files.
 
       So, even in the HTML segments of your plugin files, you need to do this:
 
-         <input type="submit" value="<?php echo _("Submit") ?>">
+         <input type="submit" value="<?php echo _("Submit"); ?>" />
 
       You can put any text you want inside of the quotes (you MUST use double
       quotes!), including HTML tags, etc.  What you should think carefully 
@@ -1092,10 +1097,10 @@ files.
 
          # Copyright (c) 1999-2003 The Squirrelmail Development Team
          # Roland Bauerschmidt <rb@debian.org>, 1999.
+         # $Id$
          msgid ""
          msgstr ""
-         "Project-Id-Version: $Id: squirrelmail.po,v 1.10 2003/06/04 15:01:59
-         philippe_mingo Exp $\n"
+         "Project-Id-Version: plugin-name version\n"
          "POT-Creation-Date: 2003-01-21 19:21+0100\n"
          "PO-Revision-Date: 2003-01-21 21:01+0100\n"
          "Last-Translator: Juergen Edner <juergen.edner@epost.de>\n"