You are here

function db_installer_object in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/install.inc \db_installer_object()
  2. 9 core/includes/install.inc \db_installer_object()

Returns a database installer object.

Parameters

$driver: The name of the driver.

1 call to db_installer_object()
drupal_get_database_types in includes/install.inc
Returns all supported database installer objects that are compiled into PHP.

File

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

Code

function db_installer_object($driver) {
  Database::loadDriverFile($driver, array(
    'install.inc',
  ));
  $task_class = 'DatabaseTasks_' . $driver;
  return new $task_class();
}