// trigger generic hook where plugins can put additional content to the
page
$hook = $this->app->plugins->exec_hook("render_page", array('template' =>
$name, 'content' => $output));
Looks great. The template name is passed to the hook!
Regards,
Roland
On Thu, 9 Jul 2009 10:37:44 +0200, Cor Bosman <[email protected]> wrote:
> On Jul 9, 2009, at 10:33 AM, Roland Liebl wrote:
>
>> On Thu, 9 Jul 2009 10:04:09 +0200, Thomas Bruederli
<[email protected]
>> >
>> Thanks!
>>
>> Is the template name passed withing the args to be able to easy
>> detect which template was rendered?
>>
>
> Hmm, interesting question. Can objects or containers exist in multiple
> templates, and if so, if you hook into the object, will it be called
> on every template? If so, thats cool. And would indeed mean you need
> the template name if you want to add only on certain templates.
>
> Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/