Skip to content

Instantly share code, notes, and snippets.

@deezone
Created October 18, 2013 21:44
Show Gist options
  • Save deezone/7048702 to your computer and use it in GitHub Desktop.
Save deezone/7048702 to your computer and use it in GitHub Desktop.
// Combine all merge_var values - these values are used to send multipul messages
// with customizations to the Mandrill templace based on the merge_var values and
// the matching *|TAGS|*
$mandrill_params['message']['merge_vars'] = empty($content['merge_vars']) ? $mandrill_params['message']['merge_vars'] : array_merge($content['merge_vars'], $mandrill_params['message']['merge_vars']);
$mandrill_params['message']['global_merge_vars'] = $global_merge_vars;
$mandrill_params['message']['to'] = empty($content['to']) ? $mandrill_params['message']['to'] : array_merge($content['to'], $mandrill_params['message']['to']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment