_system_sort_requirements

Versions
5 – 7
_system_sort_requirements($a, $b)

Helper function to sort requirements.

Code

modules/system/system.module, line 1859

<?php
function _system_sort_requirements($a, $b) {
  return (isset($a['weight']) || isset($b['weight'])) ? $a['weight'] - $b['weight'] : strcmp($a['title'], $b['title']);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.