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