Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Token Filter

Install the module as with any other module. Visit the text format administration page at /admin/config/content/formats/filters and edit a text format. Check the 'Replaces global tokens with their value' filter and save the text format.

When editing a form where this text format is used in a field, you can type global tokens that will be replaced when the field is rendered.

Additionally, if the Token module is enabled, a full list of tokens is available at /admin/help/token and also the token browser is available. You can pick up the desired token from the browser by clicking 'Browse available tokens'.

Tokens typically available

Tokens in the next groups are available on a standard installation:

  • random
  • current-date
  • site
  • current-page
  • current-user

Guide maintainers

darvanen's picture