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, the details of what configuration is being used are not available within the encryption callback function. This means that there's no way to access method settings or provider settings within that function. See Undefined index issues and incomplete settings for an example of how this is undesirable.
Comment | File | Size | Author |
---|---|---|---|
#1 | encrypt-pass-config-encrypt-callback-2371789-0.patch | 458 bytes | rlhawk |
Comments
Comment #1
rlhawkThe easiest way to do this is to include the configuration in the $options argument when calling the encryption callback function. Then the implementing module can access settings as needed. Here's a patch that does that.
Comment #2
Cellar Door CreditAttribution: Cellar Door commentedThis looks like a simple one-liner that will allow for encryption methods to know about the new config settings. I don't see it causing any issues and the patch works well so I'm marking RTBC so we can get it into dev for everyone.
Comment #4
rlhawkMarking as fixed.