roundcubemail/plugins/managesieve/managesieve.php
function settings_actions($args)
    {
        $this->load_config();

        $vacation_mode = (int) $this->rc->config->get('managesieve_vacation');

        // register Filters action
        if ($vacation_mode != 2) {
            $args['actions'][] = array(
                'action' => 'plugin.managesieve',
                'class'  => 'filter',
                'label'  => 'filters',
                'domain' => 'managesieve',
                'title'  => 'filterstitle',
            );
        }

        // register Vacation action
        if ($vacation_mode > 0) {
            $args['actions'][] = array(
                'action' => 'plugin.managesieve-vacation',
                'class'  => 'vacation',
                'label'  => 'vacation',
                'domain' => 'managesieve',
                'title'  => 'vacationtitle',
            );
        }

        return $args;
    }
function settings_actions($args)
    {
        $this->load_config();

        $vacation_mode = (int) $this->rc->config->get('managesieve_vacation');

        // register Filters action
        if ($vacation_mode != 2) {
            $args['actions'][] = array(
                'action' => 'plugin.managesieve',
                'class'  => 'filter',
                'label'  => 'filters',
                'domain' => 'managesieve',
                'title'  => 'filterstitle',
            );
        }

        // register Vacation action
        if ($vacation_mode > 0) {
            $args['actions'][] = array(
                'action' => 'plugin.managesieve-vacation',
                'class'  => 'vacation',
                'label'  => 'vacation',
                'domain' => 'managesieve',
                'title'  => 'vacationtitle',
            );
        }

        return $args;
    }
function settings_actions ( $ args ) { $ this -> load_config ( ) ; $ vacation_mode = ( int ) $ this -> rc -> config -> get ( 'managesieve_vacation' ) ; // register Filters action if ( $ vacation_mode != 2 ) { $ args [ 'actions' ] [ ] = array ( 'action' => 'plugin.managesieve' , 'class' => 'filter' , 'label' => 'filters' , 'domain' => 'managesieve' , 'title' => 'filterstitle' , ) ; } // register Vacation action if ( $ vacation_mode > 0 ) { $ args [ 'actions' ] [ ] = array ( 'action' => 'plugin.managesieve-vacation' , 'class' => 'vacation' , 'label' => 'vacation' , 'domain' => 'managesieve' , 'title' => 'vacationtitle' , ) ; } return $ args ; }
Adds Filters section in Settings
Adds Filters section in Settings