Skip to content
Permalink
Browse files

[feature/events] Add `core.page_header_override`

Add a ledge that will allow listeners to override the build in
`page_header` function.
http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=42741&p=237037

PHPBB3-9550
  • Loading branch information...
Erik Frèrejean authored and p committed Apr 2, 2012
1 parent 3b60979 commit 34988c4d4f908196715bc9c5513e745d4ab7bad8
Showing with 10 additions and 0 deletions.
  1. +10 −0 phpBB/includes/functions.php
@@ -4526,6 +4526,16 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
define('HEADER_INC', true);
// A listener can set this variable to `true` when it overrides this function
$page_header_override = false;
$vars = array('page_title', 'display_online_list', 'item_id', 'item', 'page_header_override');
extract($phpbb_dispatcher->trigger_event('core.page_header_override', compact($vars)));
if ($page_header_override)
{
return;
}
// gzip_compression
if ($config['gzip_compress'])
{

0 comments on commit 34988c4

Please sign in to comment.
You can’t perform that action at this time.