I'm building a custom module to build some tokens. I have added hook_token_info() and it works great. I haved added hook_tokens(), but I'm not able to debug with var_dump() or with dpm().
function mymoduletoken_token_info() { $info['tokens']['node']['seccion'] = array( 'name' => t('Seccion'), 'description' => t('Custon token to add to the G.A. script more optoins in seccion'), ); $info['tokens']['node']['subseccion'] = array( 'name' => t('Subseccion'), 'description' => t('Custon token to add to the G.A. script more options into subseccion'), ); return $info; } function mymoduletoken_tokens($type, $tokens, array $data = array(), array $options = array()) { dpm($type); dpm($token); dpm($data); dpm($options); } I would like to debug the different options to build the token with the information I need.