You are here

function mailchimp_get_merge_values in Mailchimp 6

Same name and namespace in other branches
  1. 5.2 mailchimp.module \mailchimp_get_merge_values()
  2. 5 mailchimp.module \mailchimp_get_merge_values()
  3. 6.2 mailchimp.module \mailchimp_get_merge_values()

Get all the potential merge var values for a given user

1 call to mailchimp_get_merge_values()
_mailchimp_load_user_list_mergevars in ./mailchimp.module
Get the relevent merge vars for the given user for the given list

File

./mailchimp.module, line 650
Mailchimp module.

Code

function mailchimp_get_merge_values($uid) {
  if ($user = user_load(array(
    'uid' => $uid,
  ))) {
    return module_invoke_all('mailchimp_merge_values', $user);
  }
  return array();
}