Define a list of user settings or profile information categories.
There are two steps to using hook_user_categories():
Step one builds out the category but it won't be visible on your form until you explicitly tell it to do so.
The function in step two should contain the following code in order to display your new category:
if ($form['#user_category'] == 'mycategory') {
// Return your form here.
}
An array of associative arrays. Each inner array has elements:
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_user_categories() {
return array(
array(
'name' => 'account',
'title' => t('Account settings'),
'weight' => 1,
),
);
}