roundcubemail/plugins/emoticons/emoticons.php
function preferences_save($args)
    {
        $rcube         = rcube::get_instance();
        $dont_override = $rcube->config->get('dont_override', array());

        if ($args['section'] == 'mailview' && !in_array('emoticons_display', $dont_override)) {
            $args['prefs']['emoticons_display'] = rcube_utils::get_input_value('_emoticons_display', rcube_utils::INPUT_POST) ? true : false;
        }
        else if ($args['section'] == 'compose' && !in_array('emoticons_compose', $dont_override)) {
            $args['prefs']['emoticons_compose'] = rcube_utils::get_input_value('_emoticons_compose', rcube_utils::INPUT_POST) ? true : false;
        }

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

        if ($args['section'] == 'mailview' && !in_array('emoticons_display', $dont_override)) {
            $args['prefs']['emoticons_display'] = rcube_utils::get_input_value('_emoticons_display', rcube_utils::INPUT_POST) ? true : false;
        }
        else if ($args['section'] == 'compose' && !in_array('emoticons_compose', $dont_override)) {
            $args['prefs']['emoticons_compose'] = rcube_utils::get_input_value('_emoticons_compose', rcube_utils::INPUT_POST) ? true : false;
        }

        return $args;
    }
function preferences_save ( $ args ) { $ rcube = rcube :: get_instance ( ) ; $ dont_override = $ rcube -> config -> get ( 'dont_override' , array ( ) ) ; if ( $ args [ 'section' ] == 'mailview' && ! in_array ( 'emoticons_display' , $ dont_override ) ) { $ args [ 'prefs' ] [ 'emoticons_display' ] = rcube_utils :: get_input_value ( '_emoticons_display' , rcube_utils :: INPUT_POST ) ? true : false ; } else if ( $ args [ 'section' ] == 'compose' && ! in_array ( 'emoticons_compose' , $ dont_override ) ) { $ args [ 'prefs' ] [ 'emoticons_compose' ] = rcube_utils :: get_input_value ( '_emoticons_compose' , rcube_utils :: INPUT_POST ) ? true : false ; } return $ args ; }
'preferences_save' hook handler
preferences_save hook handler