Roundcube Community Forum

 

Is there a way to implement on plugin that disables another plugin?

Started by joancasti, March 20, 2015, 09:07:50 AM

Previous topic - Next topic

joancasti



I'm trying to implement a feature control plugin in my webmail app using RoundCube.

I know that I could just save the control flags in session and have each plugin read the value from session in its init() method then return when necessary. But I'll like a much cleaner plugin just to do that.

Currently I'm using the render_page hook to remove certain buttons and contents from the output page, but this is taking a long time and seems not a very smart thing to do.

Does anybody know a way to disable other plugins in roundcube using a plugin?

Thanks!!
Be your own true friend

SKaero

The typical way to do this in Roundcube is to not have the plugin in the plugins array and then to load them in via a plugin using the require_plugin function.