Example #1
0
/**
 * Update the folder settings/auto-create new subfolder
 */
function save_option_sent_subfolders_base($option)
{
    // first save the option as normal
    save_option($option);
    // now update folder settings and auto-create first subfolder if needed
    sent_subfolders_update_sentfolder_do();
}
Example #2
0
/**
 * Update sent_subfolders settings
 *
 * function updates default sent folder value and
 * creates required imap folders
 */
function sent_subfolders_update_sentfolder()
{
    include_once SM_PATH . 'plugins/sent_subfolders/functions.php';
    sent_subfolders_update_sentfolder_do();
}