roundcubemail/program/lib/Roundcube/rcube_plugin_api.php
public function exec_action($action)
    {
        if (isset($this->actions[$action])) {
            call_user_func($this->actions[$action]);
        }
        else if (rcube::get_instance()->action != 'refresh') {
            rcube::raise_error(array('code' => 524, 'type' => 'php',
                'file' => __FILE__, 'line' => __LINE__,
                'message' => "No handler found for action $action"), true, true);
        }
    }
public function exec_action($action)
    {
        if (isset($this->actions[$action])) {
            call_user_func($this->actions[$action]);
        }
        else if (rcube::get_instance()->action != 'refresh') {
            rcube::raise_error(array('code' => 524, 'type' => 'php',
                'file' => __FILE__, 'line' => __LINE__,
                'message' => "No handler found for action $action"), true, true);
        }
    }
public function exec_action ( $ action ) { if ( isset ( $ this -> actions [ $ action ] ) ) { call_user_func ( $ this -> actions [ $ action ] ) ; } else if ( rcube :: get_instance ( ) -> action != 'refresh' ) { rcube :: raise_error ( array ( 'code' => 524 , 'type' => 'php' , 'file' => __FILE__ , 'line' => __LINE__ , 'message' => "No handler found for action $action" ) , true , true ) ; } }
This method handles requests like _task=mail&_action=plugin.foo
It executes the callback function that was registered with the given action.

@param string $action Action name
This method handles requests like _task = mail&_action = plugin . foo It executes the callback function that was registered with the given action .