Thank you for very useful module.
When I create a new user and select to send them a welcome e-mail, is it possible to include their Alternate Login in the body of the e-mail?
In other words, is there a variable that I can use to display this field like !username ?
Best Regards,
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | alt_login_token-228014-10.patch | 1.3 KB | csevb10 |
Comments
Comment #1
joemako commentedMy current work-around is to set their password the same as their Alternate Login and just use
!passwordin the Welcome e-mail body.So this works for me, but if there is a way to get to the variable, that would be nice.
Comment #2
hunmonk commentedthis could probably be implemented by leveraging hook_mail_alter() and hook_form_alter(). i have no interest in writing this patch, but if somebody sponsors me to write it, or submits a patch for it, i'll be happy to review and commit if it's quality work.
Comment #3
adaven commentedHere's a quick module I put together that implements this feature. It's for D6, but should be easy to backport to D5. Thanks go to hhanna for the idea.
Comment #4
hunmonk commentedwill consider integrating the mini-module in #3 into alt_login for the 7.x branch.
Comment #5
fj3 commentedI use to ver.6.10.
>>alt_login_mail.zip
This mini-module can will use in 6.10?
Comment #6
hunmonk commentedsee http://drupal.org/project/alt_login#commitment for how feature requests are handled
Comment #7
Taxoman commentedHas this been considered for inclusion in the 7.x branch yet?
Comment #8
cjsmith87 commentedHi, I need this for my drupal 7 site, cant seem to find a way to get the alternate login field into the welcome email. I have tried porting the code above to drupal but I get an error:
Notice: Undefined index: admin_created in matrixcom_form_user_admin_settings_alter() (line 79 of ...
Im assuming this is because it works differently in drupal 7. Can anyone help here? Making Alt Login a token would also be useful so I can add it the same as my profile fields.
Comment #9
cjsmith87 commentedOk solved it, for anyone who is looking for this, the following code can be placed in a custom module and creates a token for the Alt_Login field so it can be used as a token in the welcome emails:
And Dont forget to flush the cache so that the token shows up! You can then add it to the welcome emails!
Comment #10
csevb10 commentedThis can be done a variety of ways, but I liked the token based approach as well. Since this issue exists, I'll post my code in case anyone wants to use it. I basically created it with the assumption that this is something alt_login would (or could) provide so it's here as a patch.
Hope it helps. :-)
--Bill