function install_goto

Same name in other branches
  1. 9 core/includes/install.inc \install_goto()
  2. 8.9.x core/includes/install.inc \install_goto()
  3. 10 core/includes/install.inc \install_goto()
  4. 11.x core/includes/install.inc \install_goto()

Sends the user to a different installer page.

This issues an on-site HTTP redirect. Messages (and errors) are erased.

Parameters

$path: An installer path.

3 calls to install_goto()
install_drupal in includes/install.core.inc
Installs Drupal either interactively or via an array of passed-in settings.
update.php in ./update.php
Administrative page for handling updates from one Drupal version to another.
_drupal_bootstrap_database in includes/bootstrap.inc
Initializes the database system and registers autoload functions.
1 string reference to 'install_goto'
drupal_redirect_form in includes/form.inc
Redirects the user to a URL after a form has been processed.

File

includes/install.inc, line 1041

Code

function install_goto($path) {
    global $base_url;
    include_once DRUPAL_ROOT . '/includes/common.inc';
    header('Location: ' . $base_url . '/' . $path);
    header('Cache-Control: no-cache');
    // Not a permanent redirect.
    drupal_exit();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.