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

Anonymous’s picture

+1

levelos’s picture

Status: Active » Closed (fixed)
pontus_nilsson’s picture

The code is not run at a fresh installation of the module.

  $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'mailchimp' and type = 'module'");

Does this need to be set in function mailchimp_install() { ?

levelos’s picture

done