drupal_installation_attempted

Versions
7
drupal_installation_attempted()

Return TRUE if a Drupal installation is currently being attempted.

▾ 3 functions call drupal_installation_attempted()

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
Return the name of the localization function. Use in code that needs to run both during installation and normal operation.
_db_check_install_needed in includes/database/database.inc
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.

Code

includes/bootstrap.inc, line 1718

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.