Drupal is a registered trademark of Dries Buytaert

token_eca_alter

65 sites Security covered
View on drupal.org

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
2
First release
Oct 2025
Latest release
4 months ago
Release cadence
0 days
Stability
0% stable

Releases

Version Type Release date
3.0.0-beta2 Pre-release Oct 30, 2025
3.0.0-beta1 Pre-release Oct 30, 2025