I'm seeing this in site status:

"Token types are not defined but have tokens"

I have no idea what this means! Token types have tokens?

Comments

joachim created an issue. See original summary.

dave reid’s picture

It means that there is a situation like this:

function mymodule_token_info() {
  $info['tokens']['mytype']['mytoken'] = array(...);
  // But $info['types']['mytype'] is not defined anywhere else
}

Suggestions on how we could better reword this?

dave reid’s picture

Title: confusing status message » Improve status report messages about improper token API definitions
Category: Bug report » Feature request
joachim’s picture

Another problem here is that while the text suggests a problem, in the status report page it looks like it's listed as an 'OK' rather than any kind of error or warning.

In my case the text was ' Token types do not have any tokens defined '