summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-05 19:10:41 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-05 19:10:41 +0000
commit7933309d8746fb9bc2ffb489d7f568d9303bb21d (patch)
tree35bd9afe38cda8b83a1c7a13126553f0dce179e5 /roundcubemail/program/steps
parentd59de046d205e33d02daade5a4ce8cdf56366fed (diff)
- Plugin API: added 'message_compose_body' hook (#1486285)
git-svn-id: https://svn.roundcube.net/trunk@3165 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 3a8a776fe..2236d5f57 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -444,10 +444,11 @@ function rcmail_compose_body($attrib)
// load draft message body
else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT)
$body = rcmail_create_draft_body($body, $isHtml);
- }
- else if (!empty($_SESSION['compose']['param']['body']))
- {
- $body = $_SESSION['compose']['param']['body'];
+
+ $plugin = $RCMAIL->plugins->exec_hook('message_compose_body',
+ array('body' => $body, 'html' => $isHtml, 'mode' => $compose_mode));
+
+ $body = $plugin['body'];
}
$out = $form_start ? "$form_start\n" : '';