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.
Hello,
I was wondering if token support would be possible with this module.
For example in the settings:
Email address change request email subject: *
Email address change request for !username at !site
I would like to replace !username with [user-realname] (token from the Realname module) or a profile field or a cck field.
Token support would be helpful to allow replacing with the user's real first name etc instead of the username.
I appreciate your hard work in creating this module and hope there may be a chance of implementing token support.
Thank you!
Comments
Comment #1
jaydub CreditAttribution: jaydub commentedWith token in core for Drupal 7 it will certainly happen for the d7 version. I doubt I will be able to find the time to add this in for d6. If you can provide a patch I can try to work it in.
Comment #2
robby.smith CreditAttribution: robby.smith commentedSorry I do not have any programming skills =(
Maybe someone in the community may be able to help?
This would be a great new feature to this module
Thanks!
Comment #3
YK85 CreditAttribution: YK85 commented+1 subscribing
Comment #4
jaydub CreditAttribution: jaydub commentedI'm thinking that the way to accomplish this will be to add a hook that will allow the replacement variables in the email to be altered. That way Token module will not be explicitly required but can be used in any custom hook implementation that any one site requires.
Comment #5
Bilmar CreditAttribution: Bilmar commentedsubscribing
Comment #6
jaydub CreditAttribution: jaydub commentedComment #7
jaydub CreditAttribution: jaydub commentedI've pushed code to support extra Tokens in the Drupal 7 version of the module. I am hoping I can get some extra testing before I say the feature is ready to roll out as part of a stable release.
Please check out the latest developer snapshot to try out tokens.
Comment #8
jaydub CreditAttribution: jaydub commentedToken support was added in now released drupal 7 version of the module. Setting version to 6.x for possible later port.
Comment #9
gregglesThe 6.x branch is no longer supported, so moving the status to Closed (outdated).
Please reopen it if you feel this issue still needs to be be addressed in some way.