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.
It seems that it is not possible to override API keys in f.ex. settings.php.
When putting the following in settings.php, the Mollom Drupal module still reports "The Mollom API keys are not configured yet."
$config['mollom.settings']['keys']['public'] = '...';
$config['mollom.settings']['keys']['private'] = '...';
This seems to be because the DrupalClient
class get an editable config object, and that fetches values from the database, they are not overridden through $config
Comment | File | Size | Author |
---|---|---|---|
#2 | api_keys_not_overridable-2829541-2.patch | 1.77 KB | mian3010 |
Comments
Comment #2
mian3010 CreditAttribution: mian3010 commentedAttached proposed solution
Comment #3
mian3010 CreditAttribution: mian3010 commentedComment #4
mian3010 CreditAttribution: mian3010 commented