function lingotek_mail in Lingotek Translation 7.4
Same name and namespace in other branches
- 7.7 lingotek.setup.inc \lingotek_mail()
- 7.2 lingotek.setup.inc \lingotek_mail()
- 7.3 lingotek.setup.inc \lingotek_mail()
- 7.5 lingotek.setup.inc \lingotek_mail()
- 7.6 lingotek.setup.inc \lingotek_mail()
Implement hook_mail()
File
- ./
lingotek.setup.inc, line 1176
Code
function lingotek_mail($key, &$message, $params) {
switch ($key) {
case 'activation':
// Activation Email
$date = date('m/d/Y h:i a');
$message['subject'] = t('New Community Provisioned - @date', array(
'@date' => $date,
));
$message['body'][] = t('A new community was provisioned on @date.', array(
'@date' => $date,
));
$message['body'][] = t('First Name: @firstname', array(
'@firstname' => $params['first_name'],
));
$message['body'][] = t('Last Name: @lastname', array(
'@lastname' => $params['last_name'],
));
$message['body'][] = t('Email: @email', array(
'@email' => $params['email'],
));
$message['body'][] = '';
break;
}
}