This module allows to lock any configuration changes done via the Drupal admin UI. This can be useful in scenarios where for example configuration changes should not be done on the production environment, but only on staging or local environments.

To enable readonly mode, enable this module and add this to your settings.php:

$settings['config_readonly'] = TRUE;

To allow changes via the command line and enable readonly mode for the UI only:

if (PHP_SAPI !== 'cli') {
  $settings['config_readonly'] = TRUE;
}

Project Information

Downloads