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.
The module currently only works with nodes, it should be updated to work with all entities.
Comment | File | Size | Author |
---|---|---|---|
#1 | encrypted_text-entity-support-1431294-2.patch | 5.75 KB | NotGoddess |
Comments
Comment #1
NotGoddess CreditAttribution: NotGoddess commentedI had to update this to work with field on user entity fields, so I made this patch. I've tested it with nodes, taxonomies and users but not other entity types. I updated the function names to reflect it works with entities, not just nodes.
It goes against the 1 fix per issue mode but I also addressed the following, as I needed it for my work:
I noticed another issue that needs to be addressed - encryption on fields with a short max length, but I'll open an issue for that after this.
Comment #2
bennybobw CreditAttribution: bennybobw commentedI just tried this patch on a profile2 entity. It works when writing to the db, but the default value on the form field not get decrypted, so it shows the encrypted text when you load the form.