How to override registration form message I should override registration form message "Registration successful. You are now logged in." with String Overrides module it does not work, because new text is long and every line with other style, it is in Drupal 7
I try to do it in template.php , but no my code is working.
Can anyone help me?
You can check this message in hook_init it's working for me please try this code.

function custom_init() {
 if (!empty($_SESSION['messages']['status'])) {
  $message_text_to_remove = "Registration successful. You are now logged in.";
  $key = array_search($message_text_to_remove, $_SESSION['messages']['status']);
   if ($key !== FALSE) {
      $_SESSION['messages']['status'][$key] = t('Greta Now your message changed');
    }
  }
 }


Thankyou