function install_check_requirements in Drupal 5
Same name and namespace in other branches
- 8 core/includes/install.core.inc \install_check_requirements()
- 6 install.php \install_check_requirements()
- 7 includes/install.core.inc \install_check_requirements()
- 9 core/includes/install.core.inc \install_check_requirements()
- 10 core/includes/install.core.inc \install_check_requirements()
Page to check installation requirements and report any errors.
1 call to install_check_requirements()
- install_main in ./
install.php - The Drupal installation happens in a series of steps. We begin by verifying that the current environment meets our minimum requirements. We then go on to verify that settings.php is properly configured. From there we connect to the configured database…
File
- ./
install.php, line 571
Code
function install_check_requirements($profile) {
$requirements = drupal_check_profile($profile);
$severity = drupal_requirements_severity($requirements);
// If there are issues, report them.
if ($severity == REQUIREMENT_ERROR) {
drupal_maintenance_theme();
foreach ($requirements as $requirement) {
if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
drupal_set_message($requirement['description'] . ' (' . st('Currently using !item !version', array(
'!item' => $requirement['title'],
'!version' => $requirement['value'],
)) . ')', 'error');
}
}
drupal_set_title(st('Incompatible environment'));
print theme('install_page', '');
exit;
}
}