Changes between Version 4 and Version 5 of Doc_Plugins


Ignore:
Timestamp:
Feb 19, 2009 2:34:21 AM (4 years ago)
Author:
thomasb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc_Plugins

    v4 v5  
    4747  function init() 
    4848  { 
    49     $this->add_hook('message-body-after', array($this, 'replace')); 
     49    $this->add_hook('message_part_after', array($this, 'replace')); 
    5050   
    5151    $this->map = array( 
     
    7171 * The plugin class should be preceded by a comment block that describes the plugin. 
    7272 * If your plugin is meant to only run in a certain task (e.g. mail,addressbook,settings) you should specify a public property {{{$task}}}. If this property is set the plugin will only be activated within that specific task in order to save memory and performance in all the other tasks. 
    73  * The method {{{init()}}} is mandatory and first links the hook ''message-body-after'' to the object method {{{replace}}}. 
     73 * The method {{{init()}}} is mandatory and first links the hook ''message_part_after'' to the object method {{{replace}}}. 
    7474 * The callback method {{{replace}}} receives one argument containing context-specific data. In this example we first check if the message type is {{{plain}}} and then the {{{body}}} field is altered and returned. The plugin API will replace the returned fields in it's original context. 
    7575