toolbar_disable_user_toolbar.module

Same filename in other branches
  1. 9 core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module
  2. 10 core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module
  3. 11.x core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module

Test module.

File

core/modules/toolbar/tests/modules/toolbar_disable_user_toolbar/toolbar_disable_user_toolbar.module

View source
<?php


/**
 * @file
 * Test module.
 */

/**
 * Implements hook_toolbar_alter().
 */
function toolbar_disable_user_toolbar_toolbar_alter(&$items) {
    unset($items['user']);
}

Functions

Title Deprecated Summary
toolbar_disable_user_toolbar_toolbar_alter Implements hook_toolbar_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.