summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-25 07:49:14 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-07-25 07:49:14 +0000
commita00ad346cee2dbf9f2857d59b9261cc2f6be0091 (patch)
tree745c7e74ccd49221b0f696a6bc0a35b3510087fb /roundcubemail/program
parent6cc4bcb73419bcbd2cff0aa518488f6027340d81 (diff)
- Plugin API: Added 'config_get' hook
git-svn-id: https://svn.roundcube.net/trunk@4962 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/include/rcube_config.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_config.php b/roundcubemail/program/include/rcube_config.php
index 0e23b0396..9379e9e7b 100644
--- a/roundcubemail/program/include/rcube_config.php
+++ b/roundcubemail/program/include/rcube_config.php
@@ -150,7 +150,17 @@ class rcube_config
*/
public function get($name, $def = null)
{
- return isset($this->prop[$name]) ? $this->prop[$name] : $def;
+ $result = isset($this->prop[$name]) ? $this->prop[$name] : $def;
+ $rcmail = rcmail::get_instance();
+
+ if (is_object($rcmail->plugins)) {
+ $plugin = $rcmail->plugins->exec_hook('config_get', array(
+ 'name' => $name, 'default' => $def, 'result' => $result));
+
+ return $plugin['result'];
+ }
+
+ return $result;
}