Currently, the messages are hardcoded and cannot be customized or removed. I the case of having a custom "thank for registering" page, these messages can become redundant. It would be ideal if we had some more flexibility about this.
// Compose the appropriate user message--admin approvals don't require a validation email.
if($reg_pass_set && variable_get('user_register', 1) == 1) {
if ($pre_auth) {
$message = t('A validation e-mail has been sent to your e-mail address. In order to gain full access to the site, you will need to follow the instructions in that message.');
}
else {
$message = '';
}
} else {
$message = t('Your password and further instructions have been sent to your e-mail address.');
}
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | logintoboggan-640824.patch | 4.61 KB | DeeLay |
Comments
Comment #1
hunmonk commented6.x branch is closed for features.
Comment #2
YK85 commented+1 subscribing
Comment #3
Bilmar commented+1 subscribing
Comment #4
hunmonk commentedhttp://drupal.org/project/stringoverrides
Comment #5
kmontyReally? It would be nice to not have to use that module on a big, performance oriented website for one simple text change.
Comment #6
hunmonk commentedit would also be nice to not have to put a setting in for every message that the module generates... ;)
i've had requests for the ability to customize many of the LT's messages. i'm not willing to add a ton of message settings, it just seems silly to do so when a module already exists that does exactly that.
Comment #7
DeeLay commentedI just had to do this recently, so here is a patch if anyone is interested.
I can understand that you have to draw the line somewhere with how much can be customized, however stringoverrides is unaware of the context in which the string is being used, so you would not be able to use variables.