On Sat, Jun 27, 2009 at 01:10, Cor Bosman<[email protected]> wrote:
> I looked at the code, and the template class seems like a perfect
> place to add a hook thats called after each template object and/or
> container. The interesting part is, there already is one!
>
> $hook = $this->app->plugins->exec_hook("template_container", $attrib);
>
> This hook is called with the container id as a parameter, and you can
> return content to add to the container. Unfortunately, it doesnt work,
> because RC uses the hook internally and doesnt play nice :) In
> function template_container_hook() it replaces the content instead of
> adding to it.

Fixed this in revison 2704. This hook can now also be used by other plugins.
>
> But, the spot where that hook is placed, is where we could have a
> before/after hook to add stuff to template objects and containers.
>
As Phil already mentioned, there's $RCMAIL->output->add_footer() and
->add_header() which can be used to insert content to the page head
and body section. I'm not sure if we really need a plugin hook that
does the same.

~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to