You are here

function uc_stock_token_list in Ubercart 6.2

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

Implements hook_token_list().

File

uc_stock/uc_stock.module, line 167

Code

function uc_stock_token_list($type = 'all') {
  $tokens = array();
  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;
}