You are here

function admin_menu_admin_menu_output_alter in Administration menu 7.3

Same name and namespace in other branches
  1. 8.3 admin_menu.module \admin_menu_admin_menu_output_alter()

Implements hook_admin_menu_output_alter().

File

./admin_menu.module, line 721
Render an administrative menu as a dropdown menu at the top of the window.

Code

function admin_menu_admin_menu_output_alter(&$content) {
  if (!empty($content['menu'])) {
    foreach ($content['menu'] as $key => $link) {

      // Move local tasks on 'admin' into icon menu.
      if ($key == 'admin/tasks' || $key == 'admin/index') {
        $content['icon']['icon'][$key] = $link;
        unset($content['menu'][$key]);
      }
    }
  }
}