function drupal_installation_attempted

Returns TRUE if a Drupal installation is currently being attempted.

5 calls to drupal_installation_attempted()
drupal_install_profile_distribution_name in drupal/core/includes/install.inc
Loads the installation profile, extracting its defined distribution name.
drupal_redirect_form in drupal/core/includes/form.inc
Redirects the user to a URL after a form has been processed.
get_t in drupal/core/includes/bootstrap.inc
Returns the name of the proper localization function.
locale_system_update in drupal/core/modules/locale/locale.module
Imports translations when new modules or themes are installed.
_drupal_bootstrap_configuration in drupal/core/includes/bootstrap.inc
Sets up the script environment and loads settings.php.

File

drupal/core/includes/bootstrap.inc, line 2567
Functions that need to be loaded on every Drupal request.

Code

function drupal_installation_attempted() {

  // This cannot rely on the MAINTENANCE_MODE constant, since that would prevent
  // tests from using the non-interactive installer, in which case Drupal
  // only happens to be installed within the same request, but subsequently
  // executed code does not involve the installer at all.
  // @see install_drupal()
  return isset($GLOBALS['install_state']) && empty($GLOBALS['install_state']['installation_finished']);
}