1.20.x drupal.inc | drupal_detect_database_types() |
Returns all supported database installer objects that are compiled into PHP.
Deprecated
since 1.0.0
See also
backdrop_load_database_driver()
Related topics
File
- includes/
drupal.inc, line 1922 - Contains constants and function wrappers for Drupal 7.x compatibility.
Code
function drupal_detect_database_types() {
watchdog_deprecated_function('drupal', __FUNCTION__);
$databases = drupal_get_database_types();
foreach ($databases as $driver => $installer) {
$databases[$driver] = $installer->name();
}
return $databases;
}