You are here

function _system_sort_requirements in Drupal 5

Same name and namespace in other branches
  1. 6 modules/system/system.module \_system_sort_requirements()
  2. 7 modules/system/system.module \_system_sort_requirements()

Helper function to sort requirements.

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

File

modules/system/system.module, line 1859
Configuration system that lets administrators modify the workings of the site.

Code

function _system_sort_requirements($a, $b) {
  return isset($a['weight']) || isset($b['weight']) ? $a['weight'] - $b['weight'] : strcmp($a['title'], $b['title']);
}