function _system_sort_requirements

Helper function to sort requirements.

1 string reference to '_system_sort_requirements'
system_status in modules/system/system.admin.inc
Menu callback: displays the site status report. Can also be used as a pure check.

File

modules/system/system.module, line 2857

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'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.