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.
* @param <drupal_user> $account
* Optional account to get available lists for. Otherwise returns a general
* list.
but:
if (empty($account)) {
global $user;
$account = $user;
}
One of these is wrong!
Comments
Comment #2
ruscoe CreditAttribution: ruscoe at ThinkShout for Mailchimp commentedYou're right; that wasn't correct at all. I've updated the documentation to reflect how the function works.
You can call
mailchimp_lists_load_multiple()
to get a complete list of MailChimp lists.