function update_check_requirements
Same name in other branches
- 9 core/includes/update.inc \update_check_requirements()
- 8.9.x core/includes/update.inc \update_check_requirements()
- 10 core/includes/update.inc \update_check_requirements()
- 11.x core/includes/update.inc \update_check_requirements()
Checks update requirements and reports errors and (optionally) warnings.
Parameters
$skip_warnings: (optional) If set to TRUE, requirement warnings will be ignored, and a report will only be issued if there are requirement errors. Defaults to FALSE.
1 call to update_check_requirements()
- update.php in ./
update.php - Administrative page for handling updates from one Drupal version to another.
File
-
./
update.php, line 353
Code
function update_check_requirements($skip_warnings = FALSE) {
// Check requirements of all loaded modules.
$requirements = module_invoke_all('requirements', 'update');
$requirements += update_extra_requirements();
$severity = drupal_requirements_severity($requirements);
// If there are errors, always display them. If there are only warnings, skip
// them if the caller has indicated they should be skipped.
if ($severity == REQUIREMENT_ERROR || $severity == REQUIREMENT_WARNING && !$skip_warnings) {
update_task_list('requirements');
drupal_set_title('Requirements problem');
$status_report = theme('status_report', array(
'requirements' => $requirements,
));
$status_report .= 'Check the error messages and <a href="' . check_url(drupal_requirements_url($severity)) . '">try again</a>.';
print theme('update_page', array(
'content' => $status_report,
));
exit;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.