function smartyCallHook($params, $smarty) { $output = null; HookRegistry::call($params['name'], array(&$params, &$smarty, &$output)); return $output; }