function uc_product_token_info_alter in Ubercart 7.3
Implements hook_token_info_alter().
Remove unwanted entity tokens.
File
- uc_product/
uc_product.tokens.inc, line 130 - Token hooks for the uc_product module.
Code
function uc_product_token_info_alter(&$info) {
$tokens = array(
'model',
'list-price',
'cost',
'sell-price',
'weight',
'weight-units',
'length',
'width',
'height',
'length_units',
'pkg-qty',
'ordering',
'shippable',
);
foreach ($tokens as $token) {
if (!empty($info['tokens']['node'][$token]['entity-token'])) {
unset($info['tokens']['node'][$token]);
}
}
}