summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-09-04 16:52:53 -0400
committerAleksander Machniak <alec@alec.pl>2014-09-04 16:52:53 -0400
commita1d042fd589d0f3f532e392200f33d157581cf2e (patch)
treed07424c03304e93d6f4a08a44a9fcccd07106aa8
parent49738f0928632c3d2bdf0ff1381d18a7012ccc8d (diff)
Add rcube_plugin_api::get_plugin() method
-rw-r--r--program/lib/Roundcube/rcube_plugin_api.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin_api.php b/program/lib/Roundcube/rcube_plugin_api.php
index e0b8aea38..92a56363a 100644
--- a/program/lib/Roundcube/rcube_plugin_api.php
+++ b/program/lib/Roundcube/rcube_plugin_api.php
@@ -626,6 +626,16 @@ class rcube_plugin_api
}
/**
+ * Returns loaded plugin
+ *
+ * @return rcube_plugin Plugin instance
+ */
+ public function get_plugin($name)
+ {
+ return $this->plugins[$name];
+ }
+
+ /**
* Callback for template_container hooks
*
* @param array $attrib