diff options
Diffstat (limited to 'program/include/rcube_plugin_api.php')
-rw-r--r-- | program/include/rcube_plugin_api.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_plugin_api.php b/program/include/rcube_plugin_api.php index 4846cd91b..f9e067fdf 100644 --- a/program/include/rcube_plugin_api.php +++ b/program/include/rcube_plugin_api.php @@ -32,6 +32,7 @@ class rcube_plugin_api public $url = 'plugins/'; public $output; public $config; + public $allowed_prefs = array(); public $handlers = array(); private $plugins = array(); @@ -182,6 +183,9 @@ class rcube_plugin_api $plugin->init(); $this->plugins[$plugin_name] = $plugin; } + if (!empty($plugin->allowed_prefs)) { + $this->allowed_prefs = array_merge($this->allowed_prefs, $plugin->allowed_prefs); + } return true; } } |