1 redirect.module | redirect_set_current_redirect($redirect) |
Stores the redirect for the current page request.
This is set very early in the bootstrap process, during redirect_url_inbound_alter(). Immediately after the full Backdrop bootstrap, this value is checked. Setting a current page redirect after hook_init() will have no effect.
Parameters
Redirect $redirect: A redirect object.
See also
&backdrop_static()
File
- core/
modules/ redirect/ redirect.module, line 214
Code
function redirect_set_current_redirect($redirect) {
$static = &backdrop_static(__FUNCTION__);
$static = $redirect;
}