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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.