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.
- Added tokens for all date formats, using format_date() so that translation can occur.
- Changed the 'workflow-current-state-date-formatted' token to use the site's default date format.
- The 'workflow-current-state-date-iso' token was not actually ISO format.
- Added a token for a link to the user's account.
- Added a token to link to the user's email.
- Changed 'workflow-current-state-updating-user-name' to use format_username() so any name alteration
modules (e.g. RealName) can get involved. - Changed 'workflow-current-state-log-entry' to use check_markup() with the site's default input format.
The filter_xss() list was not terribly inclusive.
(We might want to add a setting sometime to choose a different one.) - Looking at http://api.drupal.org/api/drupal/modules!system!system.api.php/function/..., it seems that
we should not be returning all token values, but rather only those requested in the second calling parameter.
As an example, see http://api.drupal.org/api/drupal/modules!system!system.tokens.inc/functi....
This does not seem to be a serious issue now, but there's no telling about the future.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1891374.patch | 8.22 KB | NancyDru |
Comments
Comment #1
NancyDruPatch
Comment #2
NancyDruCommitted to 7.x-1.x-dev.
Comment #3
NancyDruSee also #1418622: Tokens replacement does not respect hook_tokens documentation