1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/16204] Remove hooks system

PHPBB3-16204
This commit is contained in:
Marc Alexander
2019-11-07 20:21:50 +01:00
parent e1dce434db
commit d66960f4d5
6 changed files with 21 additions and 324 deletions

View File

@@ -168,26 +168,4 @@ abstract class base implements template
{
return $this->context->find_key_index($blockname, $key);
}
/**
* Calls hook if any is defined.
*
* @param string $handle Template handle being displayed.
* @param string $method Method name of the caller.
*/
protected function call_hook($handle, $method)
{
global $phpbb_hook;
if (!empty($phpbb_hook) && $phpbb_hook->call_hook(array('template', $method), $handle, $this))
{
if ($phpbb_hook->hook_return(array('template', $method)))
{
$result = $phpbb_hook->hook_return_result(array('template', $method));
return array($result);
}
}
return false;
}
}