Why not use the same substitution variables as the users module?

ymcp - June 2, 2006 - 16:56
Project:User status change notifications
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:dww
Status:closed
Description

Firstly, thanks for creating such a useful module. I certainly think that the "email user on account activation" feature should be part of Drupal core, and a quick search of previous posts suggests that many others do too.

But, until it is part of core, it would be very nice if this module could allow the generated emails to use all the same substitution variables that are available in the user module setup screen, ie: %username, %site, %password, %uri, %uri_brief, %mailto, %date, %login_uri, %edit_uri, %login_url.

There is another pending feature request just for the 1-time login link, but this would be a more generic solution.

It would mean that email text that is entered in the user setup screens could just be copy/pasted into the user status setup screens.

Also, the user module has "%username" and "%login_url" while this module has "%user", and "%loginurl". It would be nice if the used exactly the same names.

#1

dww - June 2, 2006 - 17:05

agreed.

however, allowing %password is complicated, since the only way to allow %password is to reset the password, and i've been struggling with the decision of it it's a good idea to reset the password in all the cases where this module might send an email. i'm thinking not, which is why i was planning to do the 1-time login thing, instead.

most of the others should be trivial.

#2

dww - January 13, 2007 - 05:44
Assigned to:Anonymous» dww
Status:active» fixed

since i couldn't stand it anymore and finally needed this for one of my own sites, i just committed a bunch of changes into the DRUPAL-4-7 branch to implement this feature, clean up the settings page, update the README.txt and INSTALL.txt, etc. All will be available in the forthcoming 4.7.x-1.1 release (or right now from the end of the DRUPAL-4-7 branch if you're so inclined).

enjoy,
-derek

#3

Anonymous - January 27, 2007 - 05:45
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.