Fixed
Project:
Published and corrected dates
Version:
2.0.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
18 Oct 2023 at 18:24 UTC
Updated:
16 Jul 2026 at 19:01 UTC
Jump to comment: Most recent
Comments
Comment #5
spotzero commentedHey @monochromatic,
I love this feature. There are a couple of features missing from your implementation that I'd like to see for it to be fully included.
First, token support for all three fields, published date, corrected date, and the corrected number.
Second, support for the configured date formats, so that these date tokens work like all the other date tokens.
Looking at `field_token_info_alter` in the token module's token.tokens.inc file, it looks like if you define the date tokens in hook_token_info() in the right way, all of the date options should show up and you might not need your own hook_tokens implementation for the dates.
Comment #6
spotzero commentedI lost track of this issue and this feature got implemented at a object hook. I wanted to give you the contributions, so your MR is merged into 8.x.
Thanks for your work on this.