1 install.inc backdrop_install_system()

Installs the system module.

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

File

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

Code

function backdrop_install_system() {
  config_install_default_config('system');

  $system_path = backdrop_get_path('module', 'system');
  require_once BACKDROP_ROOT . '/' . $system_path . '/system.install';
  module_invoke('system', 'install');

  $system_versions = backdrop_get_schema_versions('system');
  $system_version = $system_versions ? end($system_versions) : SCHEMA_INSTALLED;
  db_insert('system')
    ->fields(array('filename', 'name', 'type', 'owner', 'status', 'schema_version', 'bootstrap'))
    ->values(array(
      'filename' => $system_path . '/system.module',
      'name' => 'system',
      'type' => 'module',
      'owner' => '',
      'status' => 1,
      'schema_version' => $system_version,
      'bootstrap' => 0,
    ))
    ->execute();
  system_rebuild_module_data();
}