Changeset 3165 in subversion


Ignore:
Timestamp:
Dec 5, 2009 2:10:41 PM (3 years ago)
Author:
alec
Message:
  • Plugin API: added 'message_compose_body' hook (#1486285)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3163 r3165  
    22=========================== 
    33 
     4- Plugin API: added 'message_compose_body' hook (#1486285) 
    45- Fix counters of all folders are checked in 'getunread' action  with check_all_folders disabled (#1486128) 
    56- Fix displaying alternative parts in messages of type message/rfc822 (#1486246) 
  • trunk/roundcubemail/program/steps/mail/compose.inc

    r3089 r3165  
    445445    else if ($compose_mode == RCUBE_COMPOSE_DRAFT || $compose_mode == RCUBE_COMPOSE_EDIT) 
    446446      $body = rcmail_create_draft_body($body, $isHtml); 
    447   } 
    448   else if (!empty($_SESSION['compose']['param']['body'])) 
    449   { 
    450     $body = $_SESSION['compose']['param']['body']; 
     447 
     448    $plugin = $RCMAIL->plugins->exec_hook('message_compose_body', 
     449      array('body' => $body, 'html' => $isHtml, 'mode' => $compose_mode)); 
     450 
     451    $body = $plugin['body'];   
    451452  } 
    452453 
Note: See TracChangeset for help on using the changeset viewer.