Closed (fixed)
Project:
Login one time
Version:
7.x-2.5
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2012 at 09:24 UTC
Updated:
30 Mar 2012 at 13:56 UTC
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 commented--
Comment #2
danielb commented--
Comment #3
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 commented--
Comment #5
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 commentedI've committed a fix and update script. Deeply sorry for my original reaction!
Comment #7
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 commentedspelling...