I keep getting the following errors after I clear the token Cache.
The following token types are not defined but have tokens:
$info['types']['commerce-product']
$info['types']['node']
$info['types']['user']
I have tried several things to fix this. One of them being -
function my_mod_token_info(){
$info['types']['user'] = array(
'name' => t('User Tokens'),
'description' => t('All user related tokens'),
);
$info['types']['commerce-product'] = array(
'name' => t('Commerce Product Tokens'),
'description' => t('All tokens related to Commerce Products'),
);
$info['types']['node'] = array(
'name' => t('Node Tokens'),
'description' => t('All tokens related to Node'),
);
return $info;
}
None of it worked.
Comments
Comment #1
vishy_singhal CreditAttribution: vishy_singhal commentedComment #2
noslokire CreditAttribution: noslokire commentedTry #2150879: Change token_entity_info_alter to check for fieldable entities
Comment #3
vishy_singhal CreditAttribution: vishy_singhal commentedDid not work