Date tokens do not handle all date types

Created on 31 May 2011, almost 14 years ago
Updated 23 December 2023, over 1 year 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 review

Version

10.2 ✨

Component
TokenΒ  β†’

Last updated 22 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.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024