function tfa_basic_mail in TFA Basic plugins 7
Implements hook_mail().
File
- ./
tfa_basic.module, line 742
Code
function tfa_basic_mail($key, &$message, $params) {
switch ($key) {
case 'tfa_basic_tfa_enabled':
$message['subject'] = t('Your @site_name account now has two-factor authentication', array(
'@site_name' => variable_get('site_name', 'Drupal'),
));
$message['body']['body'] = tfa_basic_tfa_enabled_body($message, $params);
break;
case 'tfa_basic_disabled_configuration':
$message['subject'] = t('Your @site_name account no longer has two-factor authentication', array(
'@site_name' => variable_get('site_name', 'Drupal'),
));
$message['body']['body'] = tfa_basic_tfa_disabled_body($message, $params);
break;
}
}