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.
Hi im wondering if its possible to get token support for the mail sent to the users reviving the login mail.
Im having custom fields for the user first name and last name and would like to use them in the mail sent to the users.
And the tokens showing up dosn't seam to work :)
for example.
[user:field_firstname] [user:field_lastname],
instead of the !username, !site, !password, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url. (or letting them extend the token module).
Comments
Comment #1
danielb CreditAttribution: danielb commented--
Comment #2
danielb CreditAttribution: danielb commented--
Comment #3
Strutsagget CreditAttribution: Strutsagget commentedNo need for the manners... First of token is the way for replacing strings in Drupal. The fields and their name were just an example and implementing a general token api solves every field a user can have and all kinds of information ever needed in the mail.
And a simple I don't feel like implementing it is enough. It was just a question. Sorry for asking...
Comment #4
danielb CreditAttribution: danielb commented--
Comment #5
danielb CreditAttribution: danielb commentedholy shit I completely misunderstood
you are totally right, the correct way in Drupal 7 is to use tokens
I apologise for my meltdown
Comment #6
danielb CreditAttribution: danielb commentedI've committed a fix and update script. Deeply sorry for my original reaction!
Comment #7
Strutsagget CreditAttribution: Strutsagget commentedWorks like a charm! Thx alot and I apologize for putting the original request in wrong category.
Thx again I really love your modules!
Comment #7.0
Strutsagget CreditAttribution: Strutsagget commentedspelling...