function drupal_detect_database_types
Same name in other branches
- 7.x includes/install.inc \drupal_detect_database_types()
- 8.9.x core/includes/install.inc \drupal_detect_database_types()
- 10 core/includes/install.inc \drupal_detect_database_types()
Detects all supported databases that are compiled into PHP.
Return value
array An array of database types compiled into PHP.
1 call to drupal_detect_database_types()
- system_requirements in core/
modules/ system/ system.install - Implements hook_requirements().
File
-
core/
includes/ install.inc, line 151
Code
function drupal_detect_database_types() {
$databases = drupal_get_database_types();
foreach ($databases as $driver => $installer) {
$databases[$driver] = $installer->name();
}
return $databases;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.