1 system.module | _system_sort_requirements($a, $b) |
Helper function to sort requirements.
File
- core/
modules/ system/ system.module, line 3449 - Configuration system that lets administrators modify the workings of the site.
Code
function _system_sort_requirements($a, $b) {
if (!isset($a['weight'])) {
if (!isset($b['weight'])) {
return strcasecmp($a['title'], $b['title']);
}
return -$b['weight'];
}
return isset($b['weight']) ? $a['weight'] - $b['weight'] : $a['weight'];
}