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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mian3010 created an issue. See original summary.

mian3010’s picture

Attached proposed solution

mian3010’s picture

Issue summary: View changes
mian3010’s picture

Issue summary: View changes