People who code: we want your input. Take the Survey

New answers tagged


The answer given by @burnsjeremy shows you how to define the custom tokens. To actually use the custom tokens, you need to use token_replace(). Token replacement should be done in your custom hook_mail(). Because your module is called 'mymodule', your hook_mail() should be called mymodule_mail(). If you want your hook to be actually used, you MUST call ...

Top 50 recent answers are included