Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be a real nice feature if you have basic if and loop handling.
Comments
Comment #1
eaton CreditAttribution: eaton commentedHmmm. I'm not sure how this would look. You mean, conditional tokens that insert different things? Or including actual program logic inside the [token tags]?
Comment #2
gordon CreditAttribution: gordon commentedYes so that you can do if statements to display different text depending on the value of a token.
Also a foreach handing so that you can loop through arrays.
This will be very handy for E-Commerce and sending emails.
Comment #3
eaton CreditAttribution: eaton commentedMmm. After taking a look at this, I really think it would be out of scope for what token.module attempts to provide. It's definitely a useful feature, I just think that it's a bad match for token.module at present...