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

        if ($args['section'] == 'mailview' && !in_array('emoticons_display', $dont_override)) {
            $this->load_config();
            $this->add_texts('localization');

            $field_id = 'emoticons_display';
            $checkbox = new html_checkbox(array('name' => '_' . $field_id, 'id' => $field_id, 'value' => 1));

            $args['blocks']['main']['options']['emoticons_display'] = array(
                    'title'   => $this->gettext('emoticonsdisplay'),
                    'content' => $checkbox->show(intval($rcube->config->get('emoticons_display', false)))
            );
        }
        else if ($args['section'] == 'compose' && !in_array('emoticons_compose', $dont_override)) {
            $this->load_config();
            $this->add_texts('localization');

            $field_id = 'emoticons_compose';
            $checkbox = new html_checkbox(array('name' => '_' . $field_id, 'id' => $field_id, 'value' => 1));

            $args['blocks']['main']['options']['emoticons_compose'] = array(
                    'title'   => $this->gettext('emoticonscompose'),
                    'content' => $checkbox->show(intval($rcube->config->get('emoticons_compose', true)))
            );
        }

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

        if ($args['section'] == 'mailview' && !in_array('emoticons_display', $dont_override)) {
            $this->load_config();
            $this->add_texts('localization');

            $field_id = 'emoticons_display';
            $checkbox = new html_checkbox(array('name' => '_' . $field_id, 'id' => $field_id, 'value' => 1));

            $args['blocks']['main']['options']['emoticons_display'] = array(
                    'title'   => $this->gettext('emoticonsdisplay'),
                    'content' => $checkbox->show(intval($rcube->config->get('emoticons_display', false)))
            );
        }
        else if ($args['section'] == 'compose' && !in_array('emoticons_compose', $dont_override)) {
            $this->load_config();
            $this->add_texts('localization');

            $field_id = 'emoticons_compose';
            $checkbox = new html_checkbox(array('name' => '_' . $field_id, 'id' => $field_id, 'value' => 1));

            $args['blocks']['main']['options']['emoticons_compose'] = array(
                    'title'   => $this->gettext('emoticonscompose'),
                    'content' => $checkbox->show(intval($rcube->config->get('emoticons_compose', true)))
            );
        }

        return $args;
    }
function preferences_list ( $ args ) { $ rcube = rcube :: get_instance ( ) ; $ dont_override = $ rcube -> config -> get ( 'dont_override' , array ( ) ) ; if ( $ args [ 'section' ] == 'mailview' && ! in_array ( 'emoticons_display' , $ dont_override ) ) { $ this -> load_config ( ) ; $ this -> add_texts ( 'localization' ) ; $ field_id = 'emoticons_display' ; $ checkbox = new html_checkbox ( array ( 'name' => '_' . $ field_id , 'id' => $ field_id , 'value' => 1 ) ) ; $ args [ 'blocks' ] [ 'main' ] [ 'options' ] [ 'emoticons_display' ] = array ( 'title' => $ this -> gettext ( 'emoticonsdisplay' ) , 'content' => $ checkbox -> show ( intval ( $ rcube -> config -> get ( 'emoticons_display' , false ) ) ) ) ; } else if ( $ args [ 'section' ] == 'compose' && ! in_array ( 'emoticons_compose' , $ dont_override ) ) { $ this -> load_config ( ) ; $ this -> add_texts ( 'localization' ) ; $ field_id = 'emoticons_compose' ; $ checkbox = new html_checkbox ( array ( 'name' => '_' . $ field_id , 'id' => $ field_id , 'value' => 1 ) ) ; $ args [ 'blocks' ] [ 'main' ] [ 'options' ] [ 'emoticons_compose' ] = array ( 'title' => $ this -> gettext ( 'emoticonscompose' ) , 'content' => $ checkbox -> show ( intval ( $ rcube -> config -> get ( 'emoticons_compose' , true ) ) ) ) ; } return $ args ; }
'preferences_list' hook handler
preferences_list hook handler