summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_user.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-10-25 16:50:25 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-10-25 16:50:25 +0200
commit98b7b548a229600f7653cd67d9aae43675938143 (patch)
tree15c141db332b9ae87ef3fbf573ea32d30dc1ea76 /program/lib/Roundcube/rcube_user.php
parent4e4c2511bc00cfc0214acab63b097efe142187a7 (diff)
parent9c41ba3c9ebbb14d01abe961c420f71f9463e61a (diff)
Merge branch 'dev-canned-responses'
Conflicts (resolved): skins/classic/includes/settingstabs.html skins/larry/includes/settingstabs.html
Diffstat (limited to 'program/lib/Roundcube/rcube_user.php')
-rw-r--r--program/lib/Roundcube/rcube_user.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_user.php b/program/lib/Roundcube/rcube_user.php
index 5e9c9af80..57f63361d 100644
--- a/program/lib/Roundcube/rcube_user.php
+++ b/program/lib/Roundcube/rcube_user.php
@@ -163,8 +163,16 @@ class rcube_user
if (!$this->ID)
return false;
- $config = $this->rc->config;
- $old_prefs = (array)$this->get_prefs();
+ $plugin = $this->rc->plugins->exec_hook('preferences_update', array(
+ 'userid' => $this->ID, 'prefs' => $a_user_prefs, 'old' => (array)$this->get_prefs()));
+
+ if (!empty($plugin['abort'])) {
+ return;
+ }
+
+ $a_user_prefs = $plugin['prefs'];
+ $old_prefs = $plugin['old'];
+ $config = $this->rc->config;
// merge (partial) prefs array with existing settings
$save_prefs = $a_user_prefs + $old_prefs;