Re-implement hook_tokens()

Created on 4 June 2015, about 9 years ago
Updated 28 January 2024, 5 months ago

Problem/Motivation

The body of hook_tokens() was commented out early in the porting process and hasn't been updated since.

Proposed resolution

Uncomment and update hook_tokens().

Remaining tasks

Create patch.
Create test for flag token functionality.

User interface changes

None.

API changes

Flag tokens would work again.

πŸ› Bug report
Status

Needs work

Version

4.0

Component

Token integration

Created by

πŸ‡ΊπŸ‡ΈUnited States socketwench

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡ΉπŸ‡­Thailand AlfTheCat

    Patch from #43 applies but it seems only to work for node flags. I'm trying to use a token in a flag link on a custom ECK entity and it's not working.

Production build 0.69.0 2024