Manual talk:Hooks/ArticleViewRedirect

I haven't been able to find out where to put the function

function fnMyHook(&$out, &$text) { ... } function fnMyHook($article) { ... }

There is a place that suggests where the HOOK is placed.