function _nagios_updates_sort_by_severity in Nagios Monitoring 6
Same name and namespace in other branches
- 8 nagios.module \_nagios_updates_sort_by_severity()
- 7 nagios.module \_nagios_updates_sort_by_severity()
Helper function to sort modules by severity with usort().
1 string reference to '_nagios_updates_sort_by_severity'
- nagios_check_requirements in ./
nagios.module - Check is all Drupal requirenemts are satisfied.
File
- ./
nagios.module, line 838
Code
function _nagios_updates_sort_by_severity($a, $b) {
if (isset($a['severity']) && isset($b['severity'])) {
if ($a['severity'] == $b['severity']) {
return 0;
}
return $a['severity'] < $b['severity'] ? -1 : 1;
}
return 0;
}