function admin_menu_admin_menu_output_alter in Administration menu 8.3
Same name and namespace in other branches
- 7.3 admin_menu.module \admin_menu_admin_menu_output_alter()
Implements hook_admin_menu_output_alter().
File
- ./
admin_menu.module, line 606 - Render an administrative menu as a dropdown menu at the top of the window.
Code
function admin_menu_admin_menu_output_alter(&$content) {
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]);
}
}
}