function uc_stripe_mail in Ubercart Stripe 7.3
Implements hook_mail().
Send mail and replace token with authenticaion link.
File
- ./
uc_stripe.mail.inc, line 49
Code
function uc_stripe_mail($key, &$message, $params) {
switch ($key) {
case 'authentication_required':
$message['subject'] = t('Additional Verification Required to Process Subscription.');
$variables = array(
'user' => $params['user'],
'authentication_key' => $params['hash'],
);
$message['body'][] = token_replace($params['body'], $variables, array(
'language' => language_default(),
'callback' => 'uc_stripe_mail_tokens',
'sanitize' => FALSE,
'clear' => TRUE,
));
break;
}
}