Changeset 6835114 in github


Ignore:
Timestamp:
Jan 29, 2012 8:49:02 AM (16 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
a4e71c5
Parents:
1d7dcc6
Message:

Allow plugins to overwrite the displayed confirmation message when saving a draft

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/mail/sendmail.inc

    re472110 r6835114  
    741741  } 
    742742  $COMPOSE['param']['draft_uid'] = $saved; 
    743   $RCMAIL->plugins->exec_hook('message_draftsaved', array('msgid' => $msgid, 'uid' => $saved, 'folder' => $store_target)); 
     743  $plugin = $RCMAIL->plugins->exec_hook('message_draftsaved', array('msgid' => $msgid, 'uid' => $saved, 'folder' => $store_target)); 
    744744 
    745745  // display success 
    746   $OUTPUT->show_message('messagesaved', 'confirmation'); 
     746  $OUTPUT->show_message($plugin['message'] ? $plugin['message'] : 'messagesaved', 'confirmation'); 
    747747 
    748748  // update "_draft_saveid" and the "cmp_hash" to prevent "Unsaved changes" warning 
Note: See TracChangeset for help on using the changeset viewer.