function drupal_requirements_severity in Drupal 6
Same name and namespace in other branches
- 8 core/includes/install.inc \drupal_requirements_severity()
- 5 includes/install.inc \drupal_requirements_severity()
- 7 includes/install.inc \drupal_requirements_severity()
- 9 core/includes/install.inc \drupal_requirements_severity()
Extract highest severity from requirements array.
4 calls to drupal_requirements_severity()
- drupal_check_module in includes/
install.inc - Check a module's requirements.
- install_check_requirements in ./
install.php - Check installation requirements and report any errors.
- system_status in modules/
system/ system.admin.inc - Menu callback: displays the site status report. Can also be used as a pure check.
- update_check_requirements in ./
update.php - Check update requirements and report any errors.
File
- includes/
install.inc, line 700
Code
function drupal_requirements_severity(&$requirements) {
$severity = REQUIREMENT_OK;
foreach ($requirements as $requirement) {
if (isset($requirement['severity'])) {
$severity = max($severity, $requirement['severity']);
}
}
return $severity;
}