diff options
author | thomascube <thomas@roundcube.net> | 2012-01-29 13:49:02 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-01-29 13:49:02 +0000 |
commit | 6835114c4d0746f1c8ce7e28e6fc020c6ce4f739 (patch) | |
tree | d8d3e36d8cafca98d0e2f3245cbe42aba3bc5282 /program | |
parent | 1d7dcc641c5d1a6841d2ae16d1fa1bab2715a940 (diff) |
Allow plugins to overwrite the displayed confirmation message when saving a draft
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/sendmail.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 0f776f031..826f73135 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -740,10 +740,10 @@ if ($savedraft) { $saved = $draft_idx->get_element('FIRST'); } $COMPOSE['param']['draft_uid'] = $saved; - $RCMAIL->plugins->exec_hook('message_draftsaved', array('msgid' => $msgid, 'uid' => $saved, 'folder' => $store_target)); + $plugin = $RCMAIL->plugins->exec_hook('message_draftsaved', array('msgid' => $msgid, 'uid' => $saved, 'folder' => $store_target)); // display success - $OUTPUT->show_message('messagesaved', 'confirmation'); + $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'messagesaved', 'confirmation'); // update "_draft_saveid" and the "cmp_hash" to prevent "Unsaved changes" warning $OUTPUT->command('set_draft_id', $msgid); |