Roundcube Community Forum

 

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

Started by puresun, December 13, 2011, 03:30:31 PM

Previous topic - Next topic

puresun

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!!