Part of the Token ecosystem · 21 projects
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
Donation vith Paypal by email: [email protected]
Ask your assistant about Token ECA Alter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- ECA: Event - Condition - Action ^2.1.11 || ^3
- ECA Tamper Integration
- Tamper
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Token ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.0 | Stable | 10–11 | Jun 12, 2026 | ||
| 3.0.0-beta2 | Pre-release | 10–11 | Oct 30, 2025 | ||
| 3.0.0-beta1 | Pre-release | 10–11 | Oct 30, 2025 | ||
| 2.0.0 | Stable | 10–11 | PHP >=8.1 | Jun 26, 2024 | |
| 1.0.3 | Stable | 9–10 | Jun 26, 2024 | ||
| 1.0.2 | Stable | 9–10 | Feb 22, 2024 | ||
| 1.0.1 | Stable | 9–10 | Feb 22, 2024 | ||
| 1.0.1-beta3 | Pre-release | 9–10 | Jan 15, 2024 | ||
| 1.0.1-beta2 | Pre-release | 9–10 | Jan 15, 2024 | ||
| 1.0.0-beta1 | Pre-release | 9–10 | Nov 1, 2023 |