may i know how to change the default message "Your password and further instructions have been sent to your e-mail address." after user click submit for 'Create New Account'?

i had tried search solution in drupal but seem did found any post related to this issue. some recommend use stringoverride but is there solution to write php custom code in the custom module or template.php?

hope can hear you guys reply soon. thank you.

Comments

geobaev’s picture

Hi,

Could the drupal_set_message(), http://api.drupal.org/api/function/drupal_set_message/6 function work for you?

Best
George Baev

George Baev
Drupal Developer

My LinkedIn profile: http://bg.linkedin.com/in/georgebaev

xsean’s picture

yes, but how?

JasperHorn’s picture

Administer->User Management->User Settings

JasperHorn’s picture

Never mind that, I hadn't read your post carefully enough.

However, you can always open modules/user/user.module and search for that message and change it (not sure if this is the "right" way, but it should work.

NewZeal’s picture

I tried the stringoverrides module to no avail and ended up changing the login message by altering the messages session variable as follows:

/**
 * Implementation of hook_init()
 */
function mymodule_init() {
  if (is_array($_SESSION['messages'])) {
    foreach($_SESSION['messages'] as $type => $messages) {
      foreach($messages as $key=>$message) {        
		if ($type == "status" && strpos($message, 'validation e-mail has been sent to your e-mail address')) $_SESSION['messages']['status'][$key] = '<b>Thanks, we received your details!</b><br /><br />We have sent an email in order to verify your address.  Please check your email in order to complete the registration process<br />';
      }
    }
  }
}

This needs to go in your custom module.

TelFiRE’s picture

Do what? You linked to an issue that has gone completely unanswered and unresolved, the only reply is someone who had no idea what the issue was about.

truyenle’s picture

New Zeal's idea works for me. Thanks