Make token names consistent
Problem/Motivation
This is a follow-up on #3315709: Token [current-user:ip-address] no longer work when ECA Core is enabled and we may want to make token names provided by ECA more consistent. In particular, ECA provides these:
- form, current-form
- user, current_user
There is a hyphen and an underscore, that should be the same one. And as the token contrib module uses current-user which would cause conflicts if ECA were to use the same, ECA should use underscore generally.
This would break existing models, that used a token with the old name. But the ECA update command could resolve this automatically, or maybe even an update hook in this case.
Edited by drupalbot