function db_run_tasks
Ensures the environment for a Drupal database on a predefined connection.
This will run tasks that check that Drupal can perform all of the functions on a database, that Drupal needs. Tasks include simple checks like CREATE TABLE to database specific functions like stored procedures and client encoding.
2 calls to db_run_tasks()
- install_database_errors in includes/
install.core.inc - Checks a database connection and returns any errors.
- update_prepare_d7_bootstrap in includes/
update.inc - Performs extra steps required to bootstrap when using a Drupal 6 database.
File
-
includes/
install.inc, line 1331
Code
function db_run_tasks($driver) {
db_installer_object($driver)->runTasks();
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.