Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently we basically check for a token type
key in the entity info and use that for the token type and fall back to the entity type.
Token module, however, provides a hook to alter these mappings (hook_token_entity_mapping_alter()
), plus an API function to retrieve a mapping properly (token_get_entity_mapping()
). I think we should at least provide optional integration with Token module (i.e. if (module_exists('token')
so that this module still works, if other modules implement that hook.
Comment | File | Size | Author |
---|---|---|---|
#3 | field-default-token-get-entity-mapping.patch | 1.19 KB | tstoeckler |
|
Comments
Comment #2
maximpodorov CreditAttribution: maximpodorov commentedCould you provide a patch for this?
Comment #3
tstoecklerThis is what I was thinking.