roundcubemail/plugins/archive/archive.php
function save_prefs($args)
    {
        $rcmail        = rcmail::get_instance();
        $dont_override = $rcmail->config->get('dont_override', array());

        if ($args['section'] == 'folders' && !in_array('archive_mbox', $dont_override)) {
            $args['prefs']['archive_type'] = rcube_utils::get_input_value('_archive_type', rcube_utils::INPUT_POST);
        }
        else if ($args['section'] == 'server' && !in_array('read_on_archive', $dont_override)) {
            $args['prefs']['read_on_archive'] = (bool) rcube_utils::get_input_value('_read_on_archive', rcube_utils::INPUT_POST);
        }

        return $args;
    }
function save_prefs($args)
    {
        $rcmail        = rcmail::get_instance();
        $dont_override = $rcmail->config->get('dont_override', array());

        if ($args['section'] == 'folders' && !in_array('archive_mbox', $dont_override)) {
            $args['prefs']['archive_type'] = rcube_utils::get_input_value('_archive_type', rcube_utils::INPUT_POST);
        }
        else if ($args['section'] == 'server' && !in_array('read_on_archive', $dont_override)) {
            $args['prefs']['read_on_archive'] = (bool) rcube_utils::get_input_value('_read_on_archive', rcube_utils::INPUT_POST);
        }

        return $args;
    }
function save_prefs ( $ args ) { $ rcmail = rcmail :: get_instance ( ) ; $ dont_override = $ rcmail -> config -> get ( 'dont_override' , array ( ) ) ; if ( $ args [ 'section' ] == 'folders' && ! in_array ( 'archive_mbox' , $ dont_override ) ) { $ args [ 'prefs' ] [ 'archive_type' ] = rcube_utils :: get_input_value ( '_archive_type' , rcube_utils :: INPUT_POST ) ; } else if ( $ args [ 'section' ] == 'server' && ! in_array ( 'read_on_archive' , $ dont_override ) ) { $ args [ 'prefs' ] [ 'read_on_archive' ] = ( bool ) rcube_utils :: get_input_value ( '_read_on_archive' , rcube_utils :: INPUT_POST ) ; } return $ args ; }
Hook to save plugin-specific user settings
Hook to save plugin - specific user settings