Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Included a partial patch to the menu_clone module that will add a publish date feature.
Improved the menu clone naming convention.
I have enclosed a patch.
In our install we have extended the preview.module and menu.module to actually preview and publish the new menu at the scheduled date.
Comment | File | Size | Author |
---|---|---|---|
#2 | menu_clone_cron.zip | 1.19 KB | miltonsp |
menu_clone_prev.patch | 9.61 KB | miltonsp |
Comments
Comment #1
malc0mn CreditAttribution: malc0mn commentedVery nice feature, although I'm struggling to find a use case for it, but I'm sure there is one ;-) What exactly do you use it for?
Any one else want this in?
Comment #2
miltonsp CreditAttribution: miltonsp commentedThis is similar to the publish/unpublish facility that the Scheduler Module provides for nodes.
Many times, content producers, like to generate content to be published at a later date. Similarly, menus are modified to be automatically published at a later date.
I have attached code for a cron hook in the menu_clone module that can accomplish this.