1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 02:36:38 +02:00

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
This commit is contained in:
Meik Sievertsen
2007-09-22 19:18:13 +00:00
parent e3882844ec
commit 7f65bc98ad
8 changed files with 1201 additions and 10 deletions

View File

@@ -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'))
{