function mailchimp_get_merge_values in Mailchimp 6.2
Same name and namespace in other branches
- 5.2 mailchimp.module \mailchimp_get_merge_values()
- 5 mailchimp.module \mailchimp_get_merge_values()
- 6 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 917 - Mailchimp module.
Code
function mailchimp_get_merge_values($uid) {
$values = array();
if ($user = user_load(array(
'uid' => $uid,
))) {
$values = module_invoke_all('mailchimp_merge_values', $user);
}
return $values;
}