Here's a patch for a somewhat obscure bug.
_admin_menu_rebuild_links() tests for a "node/add" menu path using strpos($path, 'node/add') !== FALSE incorrectly causing a path defined by a custom module (eg "mymodule/node/add/...") to be placed in the admin menu.
This fix checks the that the path begins with node/add instead.
| Comment | File | Size | Author |
|---|---|---|---|
| admin_menu2.patch | 741 bytes | AltaVida |
Comments
Comment #1
sunI didn't test this patch, but it makes perfectly sense.
Comment #2
sunCommitted, thanks.