Commit eaa25177 authored by git's avatar git Committed by oadaeh

Issue #2826697 by Tom M Fallon, oadaeh: Unable to disable or enable a new...

Issue #2826697 by Tom M Fallon, oadaeh: Unable to disable or enable a new users notification / private messages programatically
parent f546c5f8
......@@ -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().
*/
......
......@@ -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().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment