_db_check_install_needed
- Versions
- 7
_db_check_install_needed()
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/database/database.inc, line 2677
<?php
function _db_check_install_needed() {
global $databases;
if (empty($databases) && !drupal_installation_attempted()) {
include_once DRUPAL_ROOT . '/includes/install.inc';
install_goto('install.php');
}
}
?>Login or register to post comments 