Changeset a82dcd4 in github for program/steps/mail/compose.inc


Ignore:
Timestamp:
Dec 5, 2009 2:10:41 PM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ceeab9e
Parents:
724cc1f
Message:
  • Plugin API: added 'message_compose_body' hook (#1486285)
File:
1 edited

Legend:

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

    r0207c45 ra82dcd4  
    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.