Source for file compose.php
Documentation is available at compose.php
* Displays all options concerning composing of new messages
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: compose.php 14845 2020-01-07 08:09:34Z pdontthink $
/** Define the group constants for this options page. */
define('SMOPT_GRP_COMPOSE', 0);
define('SMOPT_GRP_COMPOSE_REPLY', 1);
* This function builds an array with all the information about
* the options available to the user, and returns it. The options
* are grouped by the groups in which they are displayed.
* For each option, the following information is stored:
* - name: the internal (variable) name
* - caption: the description of the option in the UI
* - type: one of SMOPT_TYPE_*
* - refresh: one of SMOPT_REFRESH_*
* - size: one of SMOPT_SIZE_*
* - save: the name of a function to call when saving this option
* @return array all option information
/* Build a simple array into which we will build options. */
/******************************************************/
/* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */
/******************************************************/
/*** Load the General Compose Options into the array ***/
'caption' =>
_("Width of Editor Window"),
'name' =>
'editor_height',
'caption' =>
_("Height of Editor Window"),
'name' =>
'location_of_buttons',
'caption' =>
_("Location of Buttons when Composing"),
'name' =>
'use_javascript_addr_book',
'caption' =>
_("Address Book Display Format"),
'posvals' =>
array('1' =>
_("Pop-up window"),
'name' =>
'addrsrch_fullname',
'caption' =>
_("Format of Addresses Added From Address Book"),
'posvals' =>
array('noprefix' =>
_("No prefix/Address only"),
'nickname' =>
_("Nickname and address"),
'fullname' =>
_("Full name and address"))
'name' =>
'compose_new_win',
'caption' =>
_("Compose Messages in New Window"),
'name' =>
'compose_width',
'caption' =>
_("Width of Compose Window"),
'name' =>
'compose_height',
'caption' =>
_("Height of Compose Window"),
/*** Load the General Options into the array ***/
'name' =>
'do_not_reply_to_self',
'caption' =>
_("Send Replies To My Own Messages To Previous Recipient"),
'name' =>
'include_self_reply_all',
'caption' =>
_("Include Me in CC when I Reply All"),
'name' =>
'return_to_message_after_reply',
'caption' =>
_("Return to Original Message After Replying"),
'caption' =>
_("Prepend Signature before Reply/Forward Text"),
'caption' =>
_("Prefix for Original Message when Replying"),
'save' =>
'save_option_reply_prefix'
'caption' =>
_("Cursor Position when Replying"),
'posvals' =>
array('' =>
_("To: field"),
'focus' =>
_("Focus in body"),
'select' =>
_("Select body"),
'caption' =>
_("Strip signature when replying"),
/* Assemble all this together and return it as our result. */
/******************************************************************/
/** Define any specialized save functions for this option page. ***/
/** You must add every function that is set in save parameter ***/
/******************************************************************/
* This function saves the reply prefix (body_quote) character(s)
// save as "NONE" if it was blanked out
if (empty($option->new_value)) $option->new_value =
'NONE';
// Save the option like normal.
Documentation generated on Mon, 13 Jan 2020 04:22:09 +0100 by phpDocumentor 1.4.3