Current nodesymlinks restore feature (after disabling and than re-enabling the module) is able to restore this menu structure:

|-- Nodesymlink 1-1     (case A)
|
|-- Page                (case B)
|     |-- Nodesymlink 1-2
|
|-- Node 1             (case C)
      |-- Nodesymlink 1-3

But isn't able to restore this:

|-- Nodesymlink 1-1      (case D)
|     |-- Nodesymlink 2-1
|
|-- Nodesymlink 1-2      (case E)
      |-- Nodesymlink 1-3

Case E and D are exceptional cases and case E is nearly nonsense, but we should provide as best "restore" as it is possible.

Comments

simon georges’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Category: task » feature
simon georges’s picture

Would a sort on the query be sufficient to treat the menu items in the right order?

wojtha’s picture

Yeah, sorting by menu parents seem like a right way to go.

simon georges’s picture

Status: Active » Needs review
StatusFileSize
new672 bytes

First attempt at a patch.

This patch is part of the #1day1patch initiative.