install_goto

Versions
5 – 7
install_goto($path)

Send the user to a different installer page.

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

Parameters

$path An installer path.

▾ 2 functions call install_goto()

install_drupal in ./install.php
Install Drupal either interactively or via an array of passed-in settings.
_db_check_install_needed in includes/database/database.inc
Redirect the user to the installation script if Drupal has not been installed yet (i.e., if no $databases array has been defined in the settings file) and we are not already there. Otherwise, do nothing.

Code

includes/install.inc, line 924

<?php
function install_goto($path) {
  global $base_url;
  header('Location: ' . $base_url . '/' . $path);
  header('Cache-Control: no-cache'); // Not a permanent redirect.
  drupal_exit();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.