You are here

Provide support for Token UI browser

I just wanted to report a small area of improvement I spotted where we could add very little code but an interesting feature to the module. I tried to look for this in module's tracker, but this feature request doesn't seem to have been raised before.

I have tested simply adding '#dialog' => TRUE, to the current content form element, it seems to be working fine and allows displaying the expected Browse available tokens link (which opens the token tree in the browser dialog window).

In this case (token-7.x-1.2 or greater version), I'm not certain the wrapping fieldset (Available Tokens List, displayed on Page Title admin settings form page) would still be needed, but I would assume it should probably not be removed to keep the compatibility with older versions of Token.
We might as well want to add some code there to check the version of the token module (maybe something along the lines of what is suggest by DamienMcKenna, see #1684984-16: Support opening token browser in a jQuery UI dialog on demand), but I thought it would probably need further consideration and more discussion/feedback.