diff --git a/privatemsg.module b/privatemsg.module index 43d56d21e442ef6416914dba319bb5a785750b3c..357f47e267e031c41e88c67685b0232cbcc7d3ab 100644 --- a/privatemsg.module +++ b/privatemsg.module @@ -428,13 +428,6 @@ function privatemsg_user($type, &$edit, &$account, $category = NULL) { } } -function _privatemsg_user_add_defaults(&$account) { - if (!isset($account->privatemsg_allow)) { - $account->privatemsg_allow = variable_get('privatemsg_default_allow', 1); - $account->privatemsg_setmessage_notify = variable_get('privatemsg_default_setmessage_notify', 1); - } -} - /** * Implementation of hook_form_alter(). */ @@ -2483,3 +2476,10 @@ function privatemsg_load($message_id) { $result = db_query($sql, $params); return db_fetch_object($result); } + +function _privatemsg_user_add_defaults(&$account) { + if (!isset($account->privatemsg_allow)) { + $account->privatemsg_allow = variable_get('privatemsg_default_allow', 1); + $account->privatemsg_setmessage_notify = variable_get('privatemsg_default_setmessage_notify', 1); + } +}