You are here

function _mailchimp_lists_mergevars_populate in Mailchimp 7.5

Same name and namespace in other branches
  1. 8 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
  2. 7.3 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
  3. 7.4 modules/mailchimp_lists/mailchimp_lists.module \_mailchimp_lists_mergevars_populate()
  4. 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_process_subscribe_form_choices in modules/mailchimp_lists/mailchimp_lists.module
Processor for various list/audience form submissions.
mailchimp_lists_update_member_batch in modules/mailchimp_lists/mailchimp_lists.module
Batch processor for member mergevar updates.

File

modules/mailchimp_lists/mailchimp_lists.module, line 371

Code

function _mailchimp_lists_mergevars_populate($mergefields, $entity, $entity_type, $list_id = NULL) {
  $mergevars = mailchimp_mergevars_populate($mergefields, $entity, $entity_type, $list_id);
  drupal_alter('mailchimp_lists_mergevars', $mergevars, $entity, $entity_type, $list_id);
  return $mergevars;
}