Allows token values to be processed by Morpher.

Features

The module adds new tokens of type morpher. Use them to modify the original token values with Morpher functions:

Requirements

This module requires the Token module. You also need to install the Morpher PHP extension. For further information, see the installation instructions.

Examples

  • [morpher:inflect:term:name|rod] - term name (genitive case).
  • [morpher:inflect:term:name|rod-mn] - term name (genitive case, plural).
  • [morpher:inflect:term:name|tvor|inanimate] - term name (instrumental case, inanimate).
  • [morpher:spell:node:comment-count|комментарий] - comment count (in words).
  • [morpher:spell:node:comment-count|комментарий|rod] - comment count (in words, genitive case).
  • [morpher:spell_ordinal:node:nid|нода] - node ID (in words, ordinal number).
  • [morpher:spell_ordinal:node:nid|нода|rod] - node ID (in words, ordinal number, genitive case).
  • [morpher:spell_date:current-date:raw] - current date (in words).
  • [morpher:spell_date:current-date:raw|rod] - current date (in words, genitive case).

Instead of the above tokens (term:name, node:nid etc.), you could use any other available tokens. The vertical bar ( | ) is the separator for arguments that are passed to the Morpher function. For more information about the functions and their arguments, see the documentation.

Supporting organizations: 

Project information

Releases