diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index f9c49c7..05813a7 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -163,6 +163,24 @@ function template_preprocess_status_report(&$variables) { $variables['requirements'][$i]['severity_title'] = $severity['title']; $variables['requirements'][$i]['severity_status'] = $severity['status']; } + + $counter = $requirement; + $max = sizeof($counter); + $error = 0; + $warning = 0; + $checked = 0; + for($i = 0; $i <= $max; $++) { + // Shared between the 'foo' and 'bar' theming hooks. + if ($counter[$i]['severity_status'] == 'error' ) { + $error = $error + 1; + } + if ($counter[$i]['severity_status'] == 'warning' ) { + $error = $warning + 1; + } + if ($counter[$i]['severity_status'] == 'info' ) { + $error = $checked + 1; + } + } } /**