# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -211,3 +211,42 @@
   return url("user/registrationpassword/$account->uid/$timestamp/" . user_pass_rehash($account->pass, $timestamp, $account->login), array('absolute' => TRUE));
 }
 
+/**
+ * Implements hook_mailkeys().
+ *
+ * @return array
+ */
+function user_registrationpassword_mailkeys() {
+  return array(
+    'register'   => t('Welcome message when user self-registers and sets password during registration'),
+  );
+}
+
+/**
+ * Implements hook_mail_edit_text().
+ *
+ * @param string $mailkey
+ * @param object $language
+ *
+ * @return array
+ */
+function user_registrationpassword_mail_edit_text($mailkey, $language) {
+  $return = array();
+  $return['subject'] = _user_registrationpassword_mail_text($mailkey . '_subject', $language, array(), FALSE);
+  $return['body'] = _user_registrationpassword_mail_text($mailkey . '_body', $language, array(), FALSE);
+  return $return;
+}
+
+/**
+ * Implements hook_mail_edit_token_types().
+ *
+ * @param string $mailkey
+ *
+ * @return array
+ */
+function user_registrationpassword_mail_edit_token_types($mailkey)
+{
+  return array('user');
+}
+
+

