You are here

function _user_categories in Drupal 7

Same name and namespace in other branches
  1. 4 modules/user.module \_user_categories()
  2. 5 modules/user/user.module \_user_categories()
  3. 6 modules/user/user.module \_user_categories()

Retrieve a list of all user setting/information categories and sort them by weight.

2 calls to _user_categories()
user_category_load in modules/user/user.module
Return a user object after checking if any profile category in the path exists.
user_menu in modules/user/user.module
Implements hook_menu().

File

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

Code

function _user_categories() {
  $categories = module_invoke_all('user_categories');
  usort($categories, '_user_sort');
  return $categories;
}