Tokens currently have the rather awkward format [webform:webform-*]. I want to make a backwards-compatible conversion to better token names, like [webform:*].

1. It should be that webform_tokens_tokens() only advertises the new format token names, but both old and new are replaced by webform_tokens_tokens(). This allows current installations to work but encourages the use of the new tokens. My current thinking is to support both formats for D7 and only support the new format in D8.

2. The meta tokens should probably be broken off into their own hierarchical group.

Comments

liam morland’s picture

Item 1 fixed in 968b4fb.

wizonesolutions’s picture

What would be the benefit of #2?

liam morland’s picture

It packages related things together, making more clear the distinction between form components and meta information.

liam morland’s picture

Status: Active » Fixed

On further reflection, I'm not sure #2 is very important and should be in its own issue anyway.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.