You are here

function toolbar_anti_flicker_toolbar_alter in Toolbar Anti-flicker 8.3

Same name and namespace in other branches
  1. 8.2 toolbar_anti_flicker.module \toolbar_anti_flicker_toolbar_alter()
  2. 9.3.x toolbar_anti_flicker.module \toolbar_anti_flicker_toolbar_alter()

Implements hook_toolbar_alter().

File

./toolbar_anti_flicker.module, line 89

Code

function toolbar_anti_flicker_toolbar_alter(&$items) {
  $wrapper_attributes =& $items['home']['#wrapper_attributes']['class'];

  // Show "Home" button by default and use CSS to toggle it.
  if (($key = array_search('hidden', $wrapper_attributes)) !== false) {
    unset($wrapper_attributes[$key]);
  }
}