I recently encountered a problem using the profile merge functionality in Mailchimp module that stemmed from a module weight issue. We are using Content Profile module, and doing the merge using Content Profile's support for Tokens. However Mailchimp's submit function on the user registration form was executing before Content Profile's, which means Mailchimp was trying to do the merge before the user's Content Profile was actually created. I realize that this is a somewhat obscure issue with a contributed module, however given that Mailchimp offers this integration but I think it is in Mailchimp's best interests to allow all user registration functionality to be completed before running its functionality.
Therefore I suggest pushing the module's weight down to 10. This will almost certainly allow it to run last in all situations, and thus solve further integration problems of this sort. If you think this is a good idea I'll happily roll a patch for it.
Comments
Comment #1
Anonymous (not verified) commented+1
Comment #2
levelos commentedComment #3
pontus_nilssonThe code is not run at a fresh installation of the module.
Does this need to be set in
function mailchimp_install() {?Comment #4
levelos commenteddone