Manual:Hooks/PostLoginRedirect

Details

 * $returnTo: The page name to return to, as a string
 * $returnToQuery: array of url parameters, mapping parameter names to values
 * $type: type of login redirect as string, which can be one of:
 * error: display a return to link ignoring
 * signup: display a return to link using $wgRedirectOnLogin if needed
 * success: display a return to link using $wgRedirectOnLogin if needed
 * successredirect: send an HTTP redirect using $wgRedirectOnLogin if needed

The function should return true to continue hook processing or false to abort.