diff --git a/pm_email_notify/pm_email_notify.module b/pm_email_notify/pm_email_notify.module index b36f735ea38c798a75bc384cf5897a9710bdc5a1..6594f6f666f0fc77813ee8c18b577b60c1108d93 100644 --- a/pm_email_notify/pm_email_notify.module +++ b/pm_email_notify/pm_email_notify.module @@ -365,6 +365,13 @@ function pm_email_notify_form_user_profile_form_alter(&$form, &$form_state) { } } +/** + * Implements hook_user_insert(). + */ +function pm_email_notify_user_insert(&$edit, $account, $category) { + pm_email_notify_user_update($edit, $account, $category); +} + /** * Implements hook_user_update(). */ diff --git a/privatemsg.module b/privatemsg.module index 639ced852eea9fd40b387c986a7d8dfd21123032..93155f789907d3b01b61020f270d703d284bd8ba 100755 --- a/privatemsg.module +++ b/privatemsg.module @@ -1403,6 +1403,14 @@ function privatemsg_account_fieldset_remove_if_empty($element) { return $element; } +/** + * Implements hook_user_insert(). + */ +function privatemsg_user_insert(&$edit, $account, $category) { + // Insert and update run the same code. + privatemsg_user_update($edit, $account, $category); +} + /** * Implements hook_user_update(). */