? .svn ? translations/.svn Index: token.rules.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/token/Attic/token.rules.inc,v retrieving revision 1.1.2.2 diff -u -p -r1.1.2.2 token.rules.inc --- token.rules.inc 11 Nov 2008 00:23:28 -0000 1.1.2.2 +++ token.rules.inc 19 May 2009 17:23:06 -0000 @@ -60,7 +60,7 @@ function token_rules_input_evaluator_app } foreach($used_vars as $name) { - $type = $state['variables'][$name]->info['type']; + $type = _token_rules_map_type($state['variables'][$name]->info['type']); $token_id = _token_get_id($type, $vars[$name]); if (isset($token_cache[$token_id]) && $token_cache[$token_id] != $name) { @@ -92,8 +92,26 @@ function token_rules_input_evaluator_hel '#collapsed' => TRUE, ); $form[$name]['content'] = array( - '#value' => theme('token_help', $info['type'], '['. $name . ':', ']'), + '#value' => theme('token_help', _token_rules_map_type($info['type']), '['. $name . ':', ']'), ); } return $form; } + +/** + * Map rules types to corresponding token types + */ +function _token_rules_map_type($type) +{ + switch ($type) { + case 'taxonomy_term': + return 'taxonomy'; + break; + + // ... other mappings here + + default: + return $type; + break; + } +} \ No newline at end of file