You are here

function commerce_ss_token_info in Commerce Stock 7.2

Implements hook_token_info().

File

modules/commerce_ss/commerce_ss.module, line 58
Allow commerce products to have stock levels associated with their SKU.

Code

function commerce_ss_token_info() {
  $info['tokens']['commerce-product']['commerce-stock-int'] = array(
    'name' => t('Stock level (int)'),
    'description' => t('The stock level as an integer'),
  );
  $info['tokens']['commerce-product']['commerce-stock-user'] = array(
    'name' => t('Stock level available for the user'),
    'description' => t('The available stock level for the current user'),
  );
  return $info;
}