Hey all, anyone know if it's possible to turn off a plugin from another plugin? only certain people are currently allowed to use managesieve in our setup, and right now I have some hacks inside managesieve to do that but it would be cleaner if I could do that from a separate plugin,
cor
On 07/30/2013 05:52 PM, Cor Bosman wrote:
Hey all, anyone know if it's possible to turn off a plugin from another plugin? only certain people are currently allowed to use managesieve in our setup, and right now I have some hacks inside managesieve to do that but it would be cleaner if I could do that from a separate plugin,
It is possible to enable a plugin with rcube::get_instance()->api->load_plugin('managesieve') or $this->require_plugin('managesieve') in e.g. 'ready' or 'startup' hook handler.
On Jul 30, 2013, at 12:26 PM, "A.L.E.C" alec@alec.pl wrote:
On 07/30/2013 05:52 PM, Cor Bosman wrote:
Hey all, anyone know if it's possible to turn off a plugin from another plugin? only certain people are currently allowed to use managesieve in our setup, and right now I have some hacks inside managesieve to do that but it would be cleaner if I could do that from a separate plugin,
It is possible to enable a plugin with rcube::get_instance()->api->load_plugin('managesieve') or $this->require_plugin('managesieve') in e.g. 'ready' or 'startup' hook handler.
Thanks! Exactly what I need.
Cor