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,
I need to alter message that is appearing after user registration. I already used stringoverride module and it's working. but i am looking some other options and don't want to install this module only for single message alter.
Message that need to alter -
"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."
Thanks
Sanjay
Comments
Comment #1
MegaChriz CreditAttribution: MegaChriz commentedAn alternative is to define string overrides in the settings.php file.
See https://drupal.org/node/522036
Example:
Comment #2
sanjay.soni CreditAttribution: sanjay.soni commentedI think, We should not write any code in settings.php. We have another good option is that
we can use 'hook_status_message'. In variable parameter we will get status message and you can alter any message that you want. I have done this from this hook.
Thanks
Sanjay