Skip to content

Instantly share code, notes, and snippets.

@iaditya
Created April 4, 2017 13:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaditya/65123a65ffa6701bf775f54022e9efb4 to your computer and use it in GitHub Desktop.
Save iaditya/65123a65ffa6701bf775f54022e9efb4 to your computer and use it in GitHub Desktop.
$_data = [
'users' => [],
'recipientLists' => [],
'template' => 'default',
'vars' => [],
'tracking_id' => $this->getTrackingId()
];
foreach ($data['vars'] as $key => $value) {
if (($key != 'new_email') && ($key != 'hyperlink')) {
$data['vars'][$key] = substr($value, 0, 18);
}
}
$data = array_merge($_data, $data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment