diff options
author | JohnDoh <roundcube@tehinterweb.co.uk> | 2014-08-16 07:05:30 +0100 |
---|---|---|
committer | JohnDoh <roundcube@tehinterweb.co.uk> | 2014-08-16 07:05:30 +0100 |
commit | 4eee212883b34e1ca7cfb9466580ff20dca5c979 (patch) | |
tree | 0c1269024af76279c6a1dcc51fe820781b2edc5b /program/lib/Roundcube/rcube_plugin.php | |
parent | 0b799bee90d897d052d0310300a377e067e1fa34 (diff) |
add include_plugin function for optoinal plugins
Diffstat (limited to 'program/lib/Roundcube/rcube_plugin.php')
-rw-r--r-- | program/lib/Roundcube/rcube_plugin.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_plugin.php b/program/lib/Roundcube/rcube_plugin.php index cc7c7977f..9c7a9c2dc 100644 --- a/program/lib/Roundcube/rcube_plugin.php +++ b/program/lib/Roundcube/rcube_plugin.php @@ -121,6 +121,17 @@ abstract class rcube_plugin } /** + * Attempt to load the given plugin which is optional for the current plugin + * + * @param string Plugin name + * @return boolean True on success, false on failure + */ + public function include_plugin($plugin_name) + { + return $this->api->load_plugin($plugin_name, true, false); + } + + /** * Load local config file from plugins directory. * The loaded values are patched over the global configuration. * |