function hybridauth_mail in HybridAuth Social Login 7
Same name and namespace in other branches
- 7.2 hybridauth.module \hybridauth_mail()
Implements hook_mail().
File
- ./
hybridauth.module, line 507
Code
function hybridauth_mail($key, &$message, $params) {
$language = $message['language'];
$variables = array(
'user' => $params['account'],
);
switch ($key) {
case 'hybridauth_confirm_email':
$message['subject'] = _hybridauth_mail_text($key . '_subject', $language, $variables);
$message['body'][] = str_replace('user/reset', 'hybridauth/confirm', _hybridauth_mail_text($key . '_body', $language, $variables));
break;
}
}