drupal_detect_database_types

drupal_detect_database_types()

Detects all supported databases that are compiled into PHP.

Return value

An array of database types compiled into PHP.

File

core/includes/install.inc, line 144
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;
}
doc_Drupal
2016-10-29 09:03:11
Comments
Leave a Comment

Please login to continue.