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

MegaChriz’s picture

Status: Active » Fixed

An alternative is to define string overrides in the settings.php file.

See https://drupal.org/node/522036

Example:

$conf['locale_custom_strings_en'][''] = array(
  '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.' => 'Your alternate message',
);
sanjay.soni’s picture

I 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

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.