1 install.inc | db_installer_object($driver) |
Returns a database installer object.
Parameters
string $driver: The name of the driver.
Return value
DatabaseTasks: The database tasks object for the given driver.
File
- core/
includes/ install.inc, line 1571 - 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();
}