function _breakpoint_theme_enabled

Import breakpoints from all new enabled themes.

Parameters

array $theme_list: An array of theme names.

2 calls to _breakpoint_theme_enabled()
breakpoint_enable in drupal/core/modules/breakpoint/breakpoint.install
Implements hook_enable().
breakpoint_themes_enabled in drupal/core/modules/breakpoint/breakpoint.module
Implements hook_themes_enabled().

File

drupal/core/modules/breakpoint/breakpoint.module, line 97
Manage breakpoints and breakpoint groups for responsive designs.

Code

function _breakpoint_theme_enabled($theme_list) {
  $themes = list_themes();
  foreach ($theme_list as $theme_key) {
    $media_queries = breakpoint_get_theme_media_queries($theme_key);
    _breakpoint_import_media_queries($theme_key, $themes[$theme_key]->info['name'], Breakpoint::SOURCE_TYPE_THEME, $media_queries);

    // Import custom groups.
    _breakpoint_import_breakpoint_groups($theme_key, Breakpoint::SOURCE_TYPE_THEME);
  }
}