Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module allows you to modify the output of existing tokens using ECA (Event, Condition, Action). You can apply various transformations like truncation, case changes, encoding/decoding, and hashing to token values.

Token ECA alter allows you to alter the output of other tokens with ECA module.

Usage

[token-eca:{existing token}#{key}]

[token-eca:{existing token}#{key}#{other_key}]

In ECA {key} used with Token Alter Event to identify by [token_alter_key], [token_alter_data] is the data of {existing token}.

After alter data use Token Alter: set data to set altered data.

Exist key with module:

Truncate:

Truncate data with default length 300 or define length option. Useful for using with Metatag data need truncate the text.

[token-eca:node:title#truncate]
[token-eca:node:title#truncate{length:100}]

Title case

Uppercases the first letter of each word.

[token-eca:node:title#title-case]

Uppercase

Uppercases all characters.

[token-eca:node:title#uppercase]

Lowwercase

Lowercases all characters.

[token-eca:node:title#lowercase]

first-uppercase

Uppercase first characters.

[token-eca:node:title#first-uppercase]

first-lowercase

Lowercase first characters.

[token-eca:node:title#first-lowercase]

base64-encode

Base64 encode string.

[token-eca:node:title#base64-encode]

base64-decode

Base64 decode string.

[token-eca:node:title#base64-decode]

md5

Md5 hash string.

[token-eca:node:title#md5]

sha1

Sha1 hash string.

[token-eca:node:title#sha1]

sha256

Sha256 hash string.

[token-eca:node:title#sha256]

url-encode

URL encode string.

[token-eca:node:url#url-encode]

url-decode

URL decode string.

[token-eca:node:field-url#url-decode]

Token alter chains

[token-eca:node:title#lowercase#first-uppercase]

Extend
You can define your key and use ECA to alter the token value with your requirements.

SUPPORT DEVELOPMENT

Buy me a coffee 🥤

Donation vith Paypal by email: [email protected]

Activity

Total releases
3
First release
Oct 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
3.0.0 Stable Jun 12, 2026
3.0.0-beta2 Pre-release Oct 30, 2025
3.0.0-beta1 Pre-release Oct 30, 2025