I've created module with hook_token_info() and hook_tokens(). Now i can see my token in list of all availble tokens:
$ drush token | grep customtoken
node customtoken Node related token
But this token is not available in rules action 'Set a data value'. What is the problem with custom token?
My rule looks like:
- Events: 'After saving new content', 'After updating existing content'
- Conditions: 'Content is of type'
- Action: 'Set a data value'