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