8.5.x install.inc drupal_detect_database_types()
8.0.x install.inc drupal_detect_database_types()
8.1.x install.inc drupal_detect_database_types()
8.2.x install.inc drupal_detect_database_types()
8.3.x install.inc drupal_detect_database_types()
8.4.x install.inc drupal_detect_database_types()
8.6.x install.inc drupal_detect_database_types()
5.x install.inc drupal_detect_database_types()
6.x install.inc drupal_detect_database_types()
7.x install.inc drupal_detect_database_types()

Detects all supported databases that are compiled into PHP.

Return value

An array of database types compiled into PHP.

File

includes/install.inc, line 237
API functions for installing modules and themes.

Code

function drupal_detect_database_types() {
  $databases = drupal_get_database_types();
  foreach ($databases as $driver => $installer) {
    $databases[$driver] = $installer
      ->name();
  }
  return $databases;
}