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
Comment #0.0
IRuslan commentedCorrect message.
Comment #1
IRuslan commentedAlso see #998810: Allow drupal_alter to alter token values
Comment #2
salvisYes, let's continue in the original thread.
Comment #2.0
salvisCorrect message