drupal_requirements_severity(&$requirements)
Extracts the highest severity from the requirements array.
$requirements: An array of requirements, in the same format as is returned by hook_requirements().
The highest severity in the array.
function drupal_requirements_severity(&$requirements) { $severity = REQUIREMENT_OK; foreach ($requirements as $requirement) { if (isset($requirement['severity'])) { $severity = max($severity, $requirement['severity']); } } return $severity; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.inc/function/drupal_requirements_severity/8.1.x