function webform_protected_downloads_mail in Webform Protected Downloads 6
Same name and namespace in other branches
- 7 webform_protected_downloads.module \webform_protected_downloads_mail()
Implementation of hook_mail().
File
- ./
webform_protected_downloads.module, line 773 - This file contains hook declarations and functions for the Webform Protected Downloads module.
Code
function webform_protected_downloads_mail($key, &$message, $params) {
$language = $message['language'];
$variables = user_mail_tokens($params['account'], $language);
switch ($key) {
case 'confirmation':
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
break;
}
}