1 admin_bar.module admin_bar_admin_bar_output_alter(&$content)

Implements hook_admin_bar_output_alter().

File

core/modules/admin_bar/admin_bar.module, line 493
Render an administrative bar as a dropdown menu at the top of the window.

Code

function admin_bar_admin_bar_output_alter(&$content) {
  if (isset($content['menu']['menu'])) {
    foreach ($content['menu']['menu'] as $key => $link) {
      // Move local tasks on 'admin' into icon menu.
      if ($key == 'admin/tasks' || $key == 'admin/index') {
        unset($content['menu']['menu'][$key]);
      }
    }
  }
}