Community Documentation

drupal_installation_attempted

7 bootstrap.inc drupal_installation_attempted()
8 bootstrap.inc drupal_installation_attempted()

Returns TRUE if a Drupal installation is currently being attempted.

▾ 5 functions call drupal_installation_attempted()

drupal_install_profile_distribution_name in includes/install.inc
Loads the install profile, extracting its defined distribution name.
drupal_redirect_form in includes/form.inc
Redirects the user to a URL after a form has been processed.
get_t in includes/bootstrap.inc
Returns the name of the proper localization function.
shortcut_install in modules/shortcut/shortcut.install
Implements hook_install().
_drupal_bootstrap_database in includes/bootstrap.inc
Initializes the database system and registers autoload functions.

File

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

Code

<?php
function drupal_installation_attempted() {
  return defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install';
}
?>
Login or register to post comments