diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-22 19:18:13 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-09-22 19:18:13 +0000 |
| commit | 7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b (patch) | |
| tree | 562486b0531a95c67081cb61fd67221f8f9daa2a /phpBB/includes/template.php | |
| parent | e3882844ec985a62ae573bbcf618c08343afc717 (diff) | |
| download | forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.gz forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.bz2 forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.tar.xz forums-7f65bc98adcde87ebd12dfcc3c8963c3a5ce315b.zip | |
new hook system (do not get it confused with events or plugins please)
- introducing two new hookable functions too
git-svn-id: file:///svn/phpbb/trunk@8100 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
| -rw-r--r-- | phpBB/includes/template.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index b13dbaa99a..ca118fb632 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -147,7 +147,16 @@ class template */ function display($handle, $include_once = true) { - global $user; + global $user, $phpbb_hook; + + // To let users change the complete templated page (all variables available) + if ($phpbb_hook->call_hook(array(get_class(), __FUNCTION__), $handle, $include_once)) + { + if ($phpbb_hook->hook_return(array(get_class(), __FUNCTION__))) + { + return $phpbb_hook->hook_return_result(array(get_class(), __FUNCTION__)); + } + } if (defined('IN_ERROR_HANDLER')) { |
