diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-09-20 08:18:54 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-09-20 08:18:54 +0200 |
commit | b334a01791689a16c8d6b10955df850b891ff40e (patch) | |
tree | 34173fc260a63a18ec56b75825cdc0925c84f594 /program/include/rcmail_output_json.php | |
parent | 1bfd8ac27aa09421e77b629806dc9f667aa32cb6 (diff) | |
parent | c1ff572e176dc930c52063e53364daa315d34666 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/include/rcmail_output_json.php')
-rw-r--r-- | program/include/rcmail_output_json.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/program/include/rcmail_output_json.php b/program/include/rcmail_output_json.php index def6ee42c..d0e1eec64 100644 --- a/program/include/rcmail_output_json.php +++ b/program/include/rcmail_output_json.php @@ -227,6 +227,13 @@ class rcmail_output_json extends rcmail_output if (!empty($this->callbacks)) $response['callbacks'] = $this->callbacks; + // trigger generic hook where plugins can put additional content to the response + $hook = $this->app->plugins->exec_hook("render_response", array('response' => $response)); + + // save some memory + $response = $hook['response']; + unset($hook['response']); + echo self::json_serialize($response); } |