Programatically Modifying Config

  • Why modify programatically?

    • Change keys that aren't exposed through the Drupal Text Format GUI
    • Apply same configuration to multiple sites (and lock it down)
  • How does this work?

    • HOOK_editor_js_settings_alter(array &$settings) exposes the settings hash array
    • Implement this hook in a module and modify keys as needed