hook_user_categories
- Versions
- 7
hook_user_categories()
Retrieve a list of all user setting/information categories.
Return value
A linear array of associative arrays. These arrays have keys:
- "name": The internal name of the category.
- "title": The human-readable, localized name of the category.
- "weight": An integer specifying the category's sort ordering.
Related topics
Code
modules/user/user.api.php, line 189
<?php
function hook_user_categories() {
return array(array(
'name' => 'account',
'title' => t('Account settings'),
'weight' => 1,
));
}
?>Login or register to post comments 