function install_verify_settings in Drupal 7
Same name and namespace in other branches
- 5 install.php \install_verify_settings()
- 6 install.php \install_verify_settings()
Verifies the existing settings in settings.php.
1 call to install_verify_settings()
- install_begin_request in includes/
install.core.inc - Begins an installation request, modifying the installation state as needed.
File
- includes/
install.core.inc, line 849 - 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;
}