You are here

function _user_categories in Drupal 4

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

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

1 call to _user_categories()
user_menu in modules/user.module
Implementation of hook_menu().

File

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

Code

function _user_categories($account) {
  $categories = array();
  foreach (module_list() as $module) {
    if ($data = module_invoke($module, 'user', 'categories', NULL, $account, '')) {
      $categories = array_merge($data, $categories);
    }
  }
  usort($categories, '_user_sort');
  return $categories;
}