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.
I had to change $node->created and I did it with scheduler module.
It required any modyfications in this module, mainly I had to allow setting publish on date in the past.
I limited this possibility only specified content types and user permission.
Content types you can set in content type settings while permission is called 'publish in the past' and you can assign this permission to any roles in your drupal.
Comment | File | Size | Author |
---|
Comments
Comment #1
bartoll CreditAttribution: bartoll commentedHere is my patch
Comment #2
bartoll CreditAttribution: bartoll commentedThis one is proper patch
Comment #3
bartoll CreditAttribution: bartoll commentedThis is the newest patch. For some reasons I had to change logic. Now publishing in the past is done not immediatelly but by scheduler cron after a while.
Comment #4
pfrenssenMarking this as a duplicate of #1819074: Allow publish_on dates in the past. This is in fact the older issue, but the other has a clearer title and description.
Comment #5
jonathan1055 CreditAttribution: jonathan1055 commentedThanks Pieter for tidying up these issues.
Comment #5.0
jonathan1055 CreditAttribution: jonathan1055 commentedChanging in business logic in patch
Comment #6
jonathan1055 CreditAttribution: jonathan1055 commentedComment #7
jonathan1055 CreditAttribution: jonathan1055 commentedRemoved assignee for closed issue