You are here

function basic_cart_token_info in Basic cart 8

Same name and namespace in other branches
  1. 8.6 basic_cart.module \basic_cart_token_info()
  2. 8.0 basic_cart.module \basic_cart_token_info()
  3. 8.2 basic_cart.module \basic_cart_token_info()
  4. 8.3 basic_cart.module \basic_cart_token_info()
  5. 8.4 basic_cart.module \basic_cart_token_info()
  6. 8.5 basic_cart.module \basic_cart_token_info()

Implements hook_token_info().

File

./basic_cart.module, line 325

Code

function basic_cart_token_info() {
  $info = array();

  // Add any new tokens.
  $info['tokens']['basic_cart_order']['products'] = 'Listing of ordered products.';
  $info['tokens']['basic_cart_order']['basic_cart_total_price'] = 'Total Price of the Order';
  $info['tokens']['basic_cart_order']['basic_cart_vat'] = 'VAT value of the order.';
  $info['tokens']['basic_cart_order']['basic_cart_email'] = 'Email defined with the order.';

  // Return them.
  return $info;
}