-include_once($path_to_root . "/includes/hooks.inc");
-
-$Hooks = array();
-// include current langauge related $Hooks object if locale file exists
-if (file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
-{
- include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc");
- $code = $_SESSION['language']->code;
- $hook_class = 'hooks_'.$code;
- $Hooks[$code] = new $hook_class;
- unset($code, $hook_class);
-}