_db_check_install_needed

  1. drupal
    1. drupal7
Versionen
drupal7 _db_check_install_needed()

Redirect the user to the installation script if Drupal has not been installed yet (i.e., if no $databases array has been defined in the settings file) and we are not already there. Otherwise, do nothing.

Verwandte Themen

▾ 4 functions call _db_check_install_needed()

openConnection in includes/database/database.inc
Open a connection to the server specified by the given key and target.
parseConnectionInfo in includes/database/database.inc
Process the configuration file for database information.
query in includes/database/pgsql/database.inc
query in includes/database/database.inc
Executes a query string against the database.

Code

includes/database/database.inc, line 2487

<?php
function _db_check_install_needed() {
  global $databases;
  if (empty($databases) && !function_exists('install_main')) {
    include_once DRUPAL_ROOT . '/includes/install.inc';
    install_goto('install.php');
  }
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen