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.
If we pass in an invalid entity type to token_get_entity_mapping('entity', $entity_type), I have a suspicion that the returned value should be the passed in invalid entity type rather than FALSE. It causes problems like #1773926: Token validaiton fails on config edit if the instance context isn't an entity type. Maybe we should add an *optional* fallback for when we don't care for a FALSE value or not.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1894880-token-get-entity-mapping-fallback.patch | 2.08 KB | Dave Reid |
Comments
Comment #1
Dave ReidLet's try this out.
Comment #2
Dave ReidPushed #1 to 7.x-1.x.
http://drupalcode.org/project/token.git/commit/4a1977f