How to change this registration message: 'A message with further instructions has been sent to your email address' ?

Thanks

Comments

sdowney2002’s picture

The simplest method is to install and use (strings overrides module).

The message your seeing is hard-wired into the core user module with "drupal_set_message"; but it's also using drupal's t() function (https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/t/7) which means you can override it with the string override module.

samiullah’s picture

You can change the messages manually in body field

tesol’s picture

Sumiullah, I've been there but that message doesn't appear to be there?

samiullah’s picture

On the admin/config/people/accounts scroll down to (welcome awaiting approval ) tab and change the default message there.You can use the tokens available

tesol’s picture

Thanks, Samiullah, I will try that.

jdvc’s picture

Incorrect, you are referring to the email message. The original poster is referring to the message within drupal via drupal_set_message():

The offending code is below, resides in modules/user/user.pages.inc, you might be able to user hook_form_alter to grab the submit handler? Not sure off hand. Or just use the awesome string overrides module as suggested above.

function user_pass_submit($form, &$form_state) {
  global $language;

  $account = $form_state['values']['account'];
  // Mail one time login URL and instructions using current language.
  $mail = _user_mail_notify('password_reset', $account, $language);
  if (!empty($mail)) {
    watchdog('user', 'Password reset instructions mailed to %name at %email.', array('%name' => $account->name, '%email' => $account->mail));
    drupal_set_message(t('Further instructions have been sent to your e-mail address.'));
  }

  $form_state['redirect'] = 'user';
  return;
}

Jaypan’s picture

thejacer87’s picture

Just ran into this today. If you change the string in settings.php it will also override the password reset message. So in our case, it said "Thanks for registering" for people who reset their passwords. Working on a more localised fix and will report back with any info.