Skip to main content
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

Possible Duplicate:
Programmatically create a tokenProgrammatically create a token

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

Possible Duplicate:
Programmatically create a token

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

Possible Duplicate:
Programmatically create a token

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

insert duplicate link
Source Link

Possible Duplicate:
Programmatically create a token

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

Possible Duplicate:
Programmatically create a token

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?

Post Closed as "exact duplicate" by Jeremy French, Bart, avpaderno, googletorp
Source Link
user1750
  • 1.3k
  • 2
  • 15
  • 28

How do I create custom tokens?

How do I create custom tokens? Also, is it possible to attach a token to a callback function? For example: If my string is 'this is my [name]', can I somehow make it so that [name] will be replaced with the return value of a function?