Source for file setup.php

Documentation is available at setup.php

  1. <?php
  2.  
  3. /**
  4.  * setup.php
  5.  *
  6.  * Squirrelspell setup file, as defined by the SquirrelMail-1.2 API.
  7.  *
  8.  * @author Konstantin Riabitsev <icon at duke.edu>
  9.  * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  10.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  11.  * @version $Id: setup.php,v 1.28 2006/07/15 12:01:18 tokul Exp $
  12.  * @package plugins
  13.  * @subpackage squirrelspell
  14.  * @todo remove sqspell_ prefix from main php scripts.
  15.  */
  16.  
  17.  
  18. /**
  19.  * Standard SquirrelMail plugin initialization API.
  20.  *
  21.  * @return void 
  22.  */
  23.   global $squirrelmail_plugin_hooks;
  24.   $squirrelmail_plugin_hooks['compose_button_row']['squirrelspell'=
  25.       'squirrelspell_setup';
  26.   $squirrelmail_plugin_hooks['optpage_register_block']['squirrelspell'=
  27.       'squirrelspell_optpage_register_block';
  28.   $squirrelmail_plugin_hooks['options_link_and_description']['squirrelspell'=
  29.       'squirrelspell_options';
  30.   $squirrelmail_plugin_hooks['right_main_after_header']['squirrelspell'=
  31.       'squirrelspell_upgrade';
  32. }
  33.  
  34. /**
  35.  * Register option block
  36.  *
  37.  * This function formats and adds the plugin and its description to the
  38.  * Options screen. Code moved to internal function in order to reduce
  39.  * setup.php size.
  40.  * @return void 
  41.  */
  42.   include_once(SM_PATH 'plugins/squirrelspell/sqspell_functions.php');
  43. }
  44.  
  45. /**
  46.  * Add spell check button in compose.
  47.  *
  48.  * This function adds a "Check Spelling" link to the "Compose" row
  49.  * during message composition.
  50.  * @return void 
  51.  */
  52. function squirrelspell_setup({
  53.   include_once(SM_PATH 'plugins/squirrelspell/sqspell_functions.php');
  54. }
  55.  
  56. /**
  57.  * Upgrade dictionaries
  58.  *
  59.  * Transparently upgrades user's dictionaries when message listing is loaded
  60.  * @since 1.5.1 (sqspell 0.5)
  61.  */
  62. function squirrelspell_upgrade({
  63.   include_once(SM_PATH 'plugins/squirrelspell/sqspell_functions.php');
  64. }
  65.  
  66. /**
  67.  * Display SquirrelSpell version
  68.  * @since 1.5.1 (sqspell 0.5)
  69.  * @return string plugin's version
  70.  */
  71. function squirrelspell_version({
  72.   return '0.5';
  73. }

Documentation generated on Sat, 07 Oct 2006 16:13:34 +0300 by phpDocumentor 1.3.0RC6