You are here

function basic_cart_mail in Basic cart 7

Same name and namespace in other branches
  1. 8.6 basic_cart.module \basic_cart_mail()
  2. 8 basic_cart.module \basic_cart_mail()
  3. 8.0 basic_cart.module \basic_cart_mail()
  4. 8.2 basic_cart.module \basic_cart_mail()
  5. 8.3 basic_cart.module \basic_cart_mail()
  6. 8.4 basic_cart.module \basic_cart_mail()
  7. 8.5 basic_cart.module \basic_cart_mail()
  8. 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;
  }
}