Recently I faced a need to enable/disable menu items with rules. Here is my patch, it adds parameter in the create/update rules actions and you are able to say if the newly created or updated menu item to be enabled or disabled.

Comments

boychev’s picture

boychev’s picture

Title: Option for ebable/disable menu items » Option for enable/disable menu items
ordermind’s picture

Assigned: boychev » Unassigned
Status: Patch (to be ported) » Needs work

Please rename all "menu_*" strings and variables to "menu_link_*" to avoid confusion with menus. Then I will review the patch again.

boychev’s picture

StatusFileSize
new5.71 KB

Variables names changed.

ordermind’s picture

Status: Needs work » Closed (fixed)

Thanks, I've added your patch to the dev version now. Please test it thoroughly and then I'll release a new version.

boychev’s picture

Tested. Works like a rock ;)