When using tokens, I would like to be able to use a format similar to the following notation so I can provide the needed flexibility in how a content author can invoke these modals with minimal code experience.
An example of this token in use would be:
For more information, [modal:view:33:"click here"].
What should happen from here is that I can grab the
<text_string> and incorporate them in the output of the token replacement.
An example for the expected output would be something along the lines of:
For more information, <a href="#" data-modal-id="33">click here</a>.
Is this possible, and if so, how would I construct the
hook_tokens function to handle these dynamic values?