1 user.module user_menu_alter(&$items)

Implements hook_menu_alter().

File

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

Code

function user_menu_alter(&$items) {
  // Add an icon to the Views-provided menu item.
  if (isset($items['admin/people'])) {
    $items['admin/people']['icon'] = 'users-fill';
  }

  if (module_exists('field_ui')) {
    // Provide a parent menu item for managing fields.
    $items['admin/config/people/manage'] = $items['admin/config/people/manage/fields'];
    $items['admin/config/people/manage']['type'] = MENU_NORMAL_ITEM;
    $items['admin/config/people/manage']['weight'] = 1;
    $items['admin/config/people/manage']['description'] = 'Configure fields and display of fields on user accounts.';

    // Set "Manage fields" tab as the default tab.
    $items['admin/config/people/manage/fields']['type'] = MENU_DEFAULT_LOCAL_TASK;
  }
}