In admin_menu_alter function we have this code (line 66), that is moving all 'admin/*' items to 'admin' menu:

    if (strpos($path, 'admin') === 0) {
      $items[$path]['menu_name'] = 'admin';
    }

The problem is that all 'admin*/*' items are moved too.

The code above will fix the issue:

$path_aux = explode('/', $path);
if ($path_aux[0] == 'admin') {
  $items[$path]['menu_name'] = 'admin';
}

Comments

yhahn’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.