In mail_edit_trans() function there is next line:
drupal_alter($mailkey_obj->id, $tokens);
It allows us alter tokens by $mailkey_obj->id.

But i think it will be usefull alter they by $mailkey_obj->module to have possibility to affect on all tokens of one module in one place.

So i propose write something like this:
drupal_alter($mailkey_obj->module . '_mail_edit_tokens_list', $tokens, $mailkey_obj->id);

Comments

IRuslan’s picture

Issue summary: View changes

Correct message.

IRuslan’s picture

salvis’s picture

Status: Active » Closed (duplicate)

Yes, let's continue in the original thread.

salvis’s picture

Issue summary: View changes

Correct message