function _mailchimp_lists_mergevars_populate in Mailchimp 7.3
Same name and namespace in other branches
- 8 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
- 7.5 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
- 7.4 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
- 2.x modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
Helper function to complete a MailChimp-API-ready mergevars array.
2 calls to _mailchimp_lists_mergevars_populate()
- mailchimp_lists_populate_member_batch in modules/
mailchimp_lists/ mailchimp_lists.module - Batch processor for member mergevar updates to built the mergevar arrays.
- mailchimp_lists_process_subscribe_form_choices in modules/
mailchimp_lists/ mailchimp_lists.module - Processor for various list form submissions.
File
- modules/
mailchimp_lists/ mailchimp_lists.module, line 363
Code
function _mailchimp_lists_mergevars_populate($mergefields, $entity, $entity_type) {
$mergevars = mailchimp_mergevars_populate($mergefields, $entity, $entity_type);
drupal_alter('mailchimp_lists_mergevars', $mergevars, $entity, $entity_type);
return $mergevars;
}