function basic_cart_mail in Basic cart 7
Same name and namespace in other branches
- 8.6 basic_cart.module \basic_cart_mail()
- 8 basic_cart.module \basic_cart_mail()
- 8.0 basic_cart.module \basic_cart_mail()
- 8.2 basic_cart.module \basic_cart_mail()
- 8.3 basic_cart.module \basic_cart_mail()
- 8.4 basic_cart.module \basic_cart_mail()
- 8.5 basic_cart.module \basic_cart_mail()
- 7.2 basic_cart.cart.inc \basic_cart_mail()
Implements hook_mail().
File
- ./
basic_cart.cart.inc, line 332 - Basic cart shopping cart implementation functions.
Code
function basic_cart_mail($key, &$message, $params) {
switch ($key) {
case 'admin_mail':
$message['subject'] = check_plain(variable_get('basic_cart_admin_subject'));
$message['body'][] = filter_xss($params['admin_message']);
break;
case 'user_mail':
$message['subject'] = check_plain(variable_get('basic_cart_user_subject'));
$message['body'][] = filter_xss($params['user_message']);
break;
}
}