function uc_stock_mail in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_stock/uc_stock.module \uc_stock_mail()
- 6.2 uc_stock/uc_stock.module \uc_stock_mail()
Implements hook_mail().
File
- uc_stock/
uc_stock.module, line 112 - Allow ubercart products to have stock levels associated with their SKU
Code
function uc_stock_mail($key, &$message, $params) {
switch ($key) {
case 'threshold':
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
break;
}
}