1 redirect.module redirect_init()

Implements hook_init().

File

core/modules/redirect/redirect.module, line 282

Code

function redirect_init() {
  if (!redirect_can_redirect()) {
    return;
  }

  // Fetch the current redirect set in redirect_url_inbound_alter().
  if ($redirect = redirect_get_current_redirect()) {
    redirect_redirect($redirect);
  }
}