From: tokul Date: Thu, 17 Feb 2005 12:42:07 +0000 (+0000) Subject: removing empty and unused save_option_header() function. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=240f05f5e05afe9f4878ec1b914aa66fd9ebf478;p=squirrelmail.git removing empty and unused save_option_header() function. moving save_option_reply_prefix() to the right place. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8862 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/options/compose.php b/include/options/compose.php index e10fdcae..27b834e0 100644 --- a/include/options/compose.php +++ b/include/options/compose.php @@ -166,10 +166,24 @@ function load_optpage_data_compose() { /******************************************************************/ /** Define any specialized save functions for this option page. ***/ +/** ***/ +/** You must add every function that is set in save parameter ***/ /******************************************************************/ -function save_option_header($option) { -} +/** + * This function saves the reply prefix (body_quote) character(s) + * @param object $option + */ +function save_option_reply_prefix($option) { + // save as "NONE" if it was blanked out + // + if (empty($option->new_value)) $option->new_value = 'NONE'; -?> + + // Save the option like normal. + // + save_option($option); + +} +?> \ No newline at end of file diff --git a/include/options/display.php b/include/options/display.php index 1d5c6d23..0e197177 100644 --- a/include/options/display.php +++ b/include/options/display.php @@ -364,9 +364,6 @@ function load_optpage_data_display() { /** Define any specialized save functions for this option page. ***/ /******************************************************************/ -function save_option_header($option) { -} - /** * This function saves a new theme setting. * It updates the theme array. @@ -417,20 +414,4 @@ function icon_theme_save($option) { } -/** - * This function saves the reply prefix (body_quote) character(s) - */ -function save_option_reply_prefix($option) { - - // save as "NONE" if it was blanked out - // - if (empty($option->new_value)) $option->new_value = 'NONE'; - - - // Save the option like normal. - // - save_option($option); - -} - -?> +?> \ No newline at end of file