1 system.module system_themes_disabled($theme_list)

Implements hook_themes_disabled().

Remove the theme settings from config when the theme is disabled.

File

core/modules/system/system.module, line 3281
Configuration system that lets administrators modify the workings of the site.

Code

function system_themes_disabled($theme_list) {
  foreach ($theme_list as $theme_name) {
    if (theme_has_settings($theme_name)) {
      $config = config($theme_name . '.settings');
      if (!$config->isNew()) {
        $config->delete();
      }
    }
  }
}