Posted by Crell on
We rip action links out of hook_menu entirely, using essentially the model from. To wit, action links become their own object unto themselves that reference to a route they point TO, and to routes they should appear ON. They are then removed from hook_menu entirely. We then build a block that looks at the current route (which may need to be passed as a literal string, not pulled from the request, TBD), grabs the action links that should be on that route, and displays them. Want to change the L&F? It's a block. Enjoy.
Benefit: Action links get separated from hook_menu, where they didn't belong in the first place.
|PASSED: [[SimpleTest]]: [MySQL] 55,681 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 57,074 pass(es).|
|PASSED: [[SimpleTest]]: [MySQL] 55,903 pass(es).|