Custom token [node:customtoken] not available in rules action 'set a data value' 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'
1) The easy, but dirty way:
You can nest your tokens in an existing type (see http://drupal.org/node/1714418#comment-6468184). Eg, in hook_token_info() do:
  return array(
    'types' =&gt; $types,
    'tokens' =&gt; array(
      'site' =&gt; $my_tokens,
    ),  
  );

Your tokens will appear under &quot;Site information&quot;
2) The harder, but cleaner way:
Define your own rules data type with hook_rules_data_info()
function mymodule_data_info() {
  return array(
    'vub_events_data' =&gt; array(
      'label' =&gt; t('My Module Data'),
      'group' =&gt; t('My Module'),
      'token type' =&gt; 'my_module',
      'property info' =&gt; array(),
    ),
  );
}

and use this in your hook_token_info() implementation.