Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am creating my user manually in my shop by using a custom form:
$newUser = array(
'name' => strtolower($usr_nm),
'pass' => md5($pass),
'mail' => $_POST['mail'],
'status' => 1,
'init' => $_POST['mail'],
'roles' => array('2' => 'authenticated user')
);
$account = user_save(null, $newUser);
I am then using profile save etc to make changes to their profile. Even though I have opt out option configured for my newsletters, they are not being checked.
Is there some function I should be calling or do you have a suggestion on how I can fix this issue?
Thanks,
Paul.
Comments
Comment #1
nrackleff CreditAttribution: nrackleff commented“And now our watch [for support of the 6.x version of the MailChimp module] has ended…” With the end of Drupal 6 support, I’m sad to say we too must turn the page.
Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. “What is dead may never die, but rises again, harder and stronger!”