function agreement_mail in Agreement 6.2
Same name and namespace in other branches
- 8.2 agreement.module \agreement_mail()
- 7.2 agreement.module \agreement_mail()
- 3.0.x agreement.module \agreement_mail()
Implementation of hook_mail().
File
- ./
agreement.module, line 151 - agreement.module - Agreement module code
Code
function agreement_mail($key, &$message, $params) {
switch ($key) {
case 'notice':
$variables = user_mail_tokens($params['account'], $message['language']);
$message['subject'] = t('!sitename: !username accepted agreement', $variables);
$message['body'][] = t('The user has accepted the agreement.');
break;
}
}