hansel_token_info() defines a Token for the term type regardless the existence of the Taxonomy module. This causes the following warning on the status report page.

The following token types are not defined but have tokens:

$info['types']['term']

Additionally, the token_insert_wysiwyg module throws an error while trying to generate a list of tokens.

Recoverable fatal error: Argument 2 passed to _token_token_tree_format_row() must be an array, null given

I've taken a stab at a patch for the issue. Seems to work as expected.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeremylang’s picture

FileSize
571 bytes
DamienMcKenna’s picture

Status: Needs review » Reviewed & tested by the community

It's a very simple change, looks good.