Support token replacement

Created on 22 April 2024, 7 months ago

Problem/Motivation

The external link popup supports tokens for [link:url] and [link:text]. It would be good to support core tokens as well.

Proposed resolution

Add token support to the body text field of popups

Remaining tasks

Review and test

User interface changes

Updates the description of the external link popup body text field to either suggest installing the token module or to expose available tokens.

API changes

Adds hook_token_info() and hook_tokens() implementations, updates external_link_popup_page_attachments() to include token replacement.

Data model changes

None

Loosely related to https://www.drupal.org/project/external_link_popup/issues/3066717 β†’

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States orbmantell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024