Date tokens do not handle all date types

Created on 31 May 2011, over 13 years ago
Updated 23 December 2023, 11 months ago

system_token_info and system_tokens() only provide the 'short', 'medium' or 'long' type tokens, but do not use system_get_date_types() to define what tokens are available. Therefore any module-defined or custom date types do not get tokens. I'm working on adding this support in Token.module for Drupal 7 in the meantime, but we should fix this is core as well.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
TokenΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada franceslui

    I re-roll it to 10.2.x.

  • Status changed to Needs work 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Could the issue summary be updated to the standard template.

    Also recommend opening an MR as those are quicker to review and test.

    Changing back to 11.x as the current development branch.

Production build 0.71.5 2024