File/plugins/demo/functions.php

Description

Demo plugin functions Copyright (c) 2005 The SquirrelMail Project Team Copyright (c) 2006-2007 The NaSMail Project This file is part of NaSMail Demo plugin.

Demo plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Demo plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Demo plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  • version: $Id: functions.php 466 2007-06-27 16:09:20Z tokul $
Includes
 include_once (SM_PATH.'functions/strings.php') (line 34)
 include_once (SM_PATH.'functions/display_messages.php') (line 38)
 include_once (SM_PATH.'functions/html.php') (line 36)
Functions
demo_configtest_do (line 275)

Sample configtest hook function

  • return: informs hook about configtest error.
boolean demo_configtest_do ()
demo_loading_prefs_do (line 248)

Load plugin preferences.

void demo_loading_prefs_do ()
demo_login_form_do (line 47)

Main login_form hook function

Function echoes output instead of sending it in return call, if squirrelmail version is older than 1.5.1.

  • return: formated demo input field
html demo_login_form_do ()
demo_message_log_do (line 263)

Sample message logger

Saves message_log hook data in attachment directory.

void demo_message_log_do (array $args)
  • array $args: message_log hook arguments
    1. - hook name
    2. - message
    3. - category
demo_options_identities_buttons_do (line 222)

Main function attached to options_identities_buttons hook

  • return: html formated form buttons added to identity form
string demo_options_identities_buttons_do ( &$args)
  • &$args
demo_options_identities_process_do (line 74)

Main function attached to options_identities_process hook.

void demo_options_identities_process_do ( &$args)
  • &$args
demo_options_identities_renumber_do (line 137)

Main function attached to options_identities_renumber hook

Process changes in identity numbers. Must handle 'move_up' and 'make default' actions.

void demo_options_identities_renumber_do ( &$args)
  • &$args
demo_options_identities_table_do (line 176)

Main function attached to options_identities_table hook

  • return: html formated table rows added to identity table
string demo_options_identities_table_do ( &$args)
  • &$args
demo_options_identities_top_do (line 112)

Main function attached to options_identities_top hook.

void demo_options_identities_top_do ()

Documentation generated on Sun, 22 Nov 2009 17:36:32 +0200 by phpDocumentor 1.4.3