Skip to content

Commit

Permalink
Plugin API: Add 'write' argument to 'render_page' hook
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Dec 18, 2017
1 parent a5b0110 commit 38d2754
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion program/include/rcmail_output_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,8 @@ function parse($name = 'main', $exit = true, $write = true)
$output = $this->parse_xml($output);

// trigger generic hook where plugins can put additional content to the page
$hook = $this->app->plugins->exec_hook("render_page", array('template' => $realname, 'content' => $output));
$hook = $this->app->plugins->exec_hook("render_page", array(
'template' => $realname, 'content' => $output, 'write' => $write));

// save some memory
$output = $hook['content'];
Expand Down

0 comments on commit 38d2754

Please sign in to comment.