You are here

function uc_stock_token_list in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_stock/uc_stock.module \uc_stock_token_list()

Implementation of hook_token_list().

File

uc_stock/uc_stock.module, line 82

Code

function uc_stock_token_list($type = 'all') {
  if ($type == 'stock' || $type == 'ubercart' || $type == 'all') {
    $tokens['stock']['stock-level'] = t('The current stock level');
    $tokens['stock']['stock-model'] = t('The model or SKU of the stock level');
    $tokens['stock']['stock-threshold'] = t('The threshold or warning limit of the stock level');
  }
  return $tokens;
}