function _user_categories in Drupal 5
Same name and namespace in other branches
- 4 modules/user.module \_user_categories()
- 6 modules/user/user.module \_user_categories()
- 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/ user.module - Implementation of hook_menu().
File
- modules/
user/ user.module, line 2455 - 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;
}