function breakpoint_themes_enabled in Breakpoints 8
Implements hook_themes_enabled().
Import breakpoints from all new enabled themes.
Parameters
array $theme_list: An array of theme names.
1 call to breakpoint_themes_enabled()
- breakpoint_enable in ./
breakpoint.module - Implements hook_enable().
File
- ./
breakpoint.module, line 31 - Manage breakpoints and breakpoint groups for responsive designs.
Code
function breakpoint_themes_enabled($theme_list) {
$themes = list_themes();
foreach ($theme_list as $theme_key) {
if ($themes[$theme_key]->status) {
$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);
}
}
}