How can I customize the message after register? How can I change, or customize, the message shown to the user after registration in Drupal 7?


  Further instructions have been sent to your e-mail address.


I tried the following code, but it didn't work for me.

function mymodule_message_alter(&amp;$messages) {
  switch($messages-&gt;messages['status'][0]) {
    case 'Further instructions have been sent to your e-mail address.':
      $messages-&gt;messages['status'][0] = t('Your reset password instructions have been sent to your e-mail address. Please check your email and follow the instructions&lt;/p&gt;');
    break;
  }

  // Disabling / Suppress all messages on a page and only display one Message
  if(arg(0) =='your-custom-page') {
    if($messages-&gt;messages['error']) {
      unset($messages-&gt;messages['error']);
      $messages-&gt;messages['error'][0] = t('This is my custom message to replace 10 system messages :) ');
    }
  }
  return $messages;
}
It might be overkill for a single message but the String Overrides module would work.

It includes a UI for quickly adding string replacements for anything that is passed through the t() function, which includes the message that you're trying to replace.