You are here

function _user_sort in Drupal 4

Same name and namespace in other branches
  1. 5 modules/user/user.module \_user_sort()
  2. 6 modules/user/user.module \_user_sort()
  3. 7 modules/user/user.module \_user_sort()
2 string references to '_user_sort'
_user_categories in modules/user.module
Retrieve a list of all user setting/information categories and sort them by weight.
_user_forms in modules/user.module
Retrieve a list of all form elements for the specified category.

File

modules/user.module, line 2130
Enables the user registration and login system.

Code

function _user_sort($a, $b) {
  return $a['weight'] < $b['weight'] ? -1 : ($a['weight'] > $b['weight'] ? 1 : ($a['title'] < $b['title'] ? -1 : 1));
}