Hooks reference: action_view_autolang_go
This hook is called by Action:view when a page is called with ?autolang= argument, and the page is available in the wanted language.
Args details
- $oPage (Instance of class AnwPage) : Current page
- $oGoodPage (Instance of class AnwPage) : Translation of current page in the wanted language passed in ?autolang= argument
Exceptions
- AnwPluginInterruptionException : Stay on current page, don't redirect to the wanted language's translation.
Example
- function hook_action_view_autolang_go($oPage, $oGoodPage) {
- //your code here...
- if (/* special case *//*) throw new AnwPluginInterruptionException(); }
- en
Last edited on 04/05/2009 14:23:21