Code for creating path alias token
/**
* Implementation of hook_token_list().
*/
function gmapnode_token_list(
$type = 'all') {
if($type == 'taxonomy' || $type == 'all') {
$tokens['taxonomy']['catpath-raw-not-self'] = t('As [cat-raw], but including its supercategories separated by /. NOT INCLUDING ITSELF! WARNING - raw user input.');
return $tokens;
}
elseif($type == 'node') {
$tokens['node']['termfirst-leaf-catpath-raw'] = t('Unfiltered path of the first leaf term.