Changes between Version 20 and Version 21 of Plugin_Hooks


Ignore:
Timestamp:
Jul 9, 2009 5:52:53 AM (4 years ago)
Author:
thomasb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugin_Hooks

    v20 v21  
    451451 
    452452 
     453=== template_container === 
     454 
     455Allows a plugin the add HTML content to a specific container.[[BR]] 
     456A skin template may specify several containers (e.g. taskbar, toolbar, etc...). This hook is triggered when the template engine processes such a container and it is also internally used for adding buttons using {{{$this->add_button(attrib, container)}}}. Remember to always add or prepend to the {{{content}}} argument and never replace it entirely. 
     457 
     458''Arguments:'' 
     459  * name: ''Name of the container'' 
     460  * content: ''The container content'' 
     461 
     462''Return values:'' 
     463  * content 
     464 
     465 
    453466=== render_page === 
    454467 
    455 Triggered after a tempalte was parsed, just before sending the HTML page to the client.[[BR]] 
     468Triggered after a template was parsed, just before sending the HTML page to the client.[[BR]] 
    456469This is the place where plugins can add additional content to the page which is not related to any template object. Use {{{$rcmail->output->add_footer()}}} or {{{$this->include_script()}}} to extend the html page. Of course it's also possible to directly alter the {{{content}}} attribute. 
    457470