function install_verify_settings
7.x install.core.inc | install_verify_settings() |
6.x install.php | install_verify_settings() |
Verifies the existing settings in settings.php.
1 call to install_verify_settings()
- install_begin_request in drupal-7.x/
includes/ install.core.inc - Begins an installation request, modifying the installation state as needed.
File
- drupal-7.x/
includes/ install.core.inc, line 837 - API functions for installing Drupal.
Code
function install_verify_settings() {
global $databases;
// Verify existing settings (if any).
if (!empty($databases) && install_verify_pdo()) {
$database = $databases['default']['default'];
drupal_static_reset('conf_path');
$settings_file = './' . conf_path(FALSE) . '/settings.php';
$errors = install_database_errors($database, $settings_file);
if (empty($errors)) {
return TRUE;
}
}
return FALSE;
}