You are here

function drupal_install_system in Drupal 6

Same name and namespace in other branches
  1. 8 core/includes/install.inc \drupal_install_system()
  2. 7 includes/install.inc \drupal_install_system()
  3. 9 core/includes/install.inc \drupal_install_system()
  4. 10 core/includes/install.inc \drupal_install_system()

Callback to install the system module.

Separated from the installation of other modules so core system functions can be made available while other modules are installed.

1 call to drupal_install_system()
install_main in ./install.php
The Drupal installation happens in a series of steps. We begin by verifying that the current environment meets our minimum requirements. We then go on to verify that settings.php is properly configured. From there we connect to the configured database…

File

includes/install.inc, line 356

Code

function drupal_install_system() {
  $system_path = dirname(drupal_get_filename('module', 'system', NULL));
  require_once './' . $system_path . '/system.install';
  module_invoke('system', 'install');
  $system_versions = drupal_get_schema_versions('system');
  $system_version = $system_versions ? max($system_versions) : SCHEMA_INSTALLED;
  db_query("INSERT INTO {system} (filename, name, type, owner, status, throttle, bootstrap, schema_version) VALUES('%s', '%s', '%s', '%s', %d, %d, %d, %d)", $system_path . '/system.module', 'system', 'module', '', 1, 0, 0, $system_version);

  // Now that we've installed things properly, bootstrap the full Drupal environment
  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  module_rebuild_cache();
}