Problem/Motivation

Flag export a count and link token for each available flag (in flag_token_info). To do so, it use the flag types (as returned by flag_get_types) as token type. Flag Terms uses taxonomy_term as flag type for taxonomy terms, but Token uses term. so the tokens for terms flags are not usable and trigger a warning message in the status report.

Proposed resolution

Implement hook_token_info_alter to fix the term flags' tokens.

Remaining tasks

The root cause of this issue is that Flag assumes that a flag type will always match a token type, without providing a way to map a flag type to a token type. A Flag issue may need to be filled to let Flag provides an alternative to the implementation of hook_token_info_alter by flag types providing modules.