1 token_example.module token_example_entity_info_alter(&$info)

Implements hook_entity_info_alter().

@todo Remove this when the testbot can properly pick up dependencies for contrib modules.

Related topics

File

modules/examples/token_example/token_example.module, line 39
Hook implementations for the Token Example module.

Code

function token_example_entity_info_alter(&$info) {
  if (isset($info['taxonomy_term'])) {
    $info['taxonomy_term']['token type'] = 'term';
  }
  if (isset($info['taxonomy_vocabulary'])) {
    $info['taxonomy_vocabulary']['token type'] = 'vocabulary';
  }
}