function _breakpoint_modules_enabled

Import breakpoints from all new enabled modules.

Parameters

array $modules: An array of the modules that were enabled.

2 calls to _breakpoint_modules_enabled()
breakpoint_enable in drupal/core/modules/breakpoint/breakpoint.install
Implements hook_enable().
breakpoint_modules_enabled in drupal/core/modules/breakpoint/breakpoint.module
Implements hook_modules_enabled().

File

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

Code

function _breakpoint_modules_enabled($modules) {
  foreach ($modules as $module) {
    $media_queries = breakpoint_get_module_media_queries($module);
    _breakpoint_import_media_queries($module, $module, Breakpoint::SOURCE_TYPE_MODULE, $media_queries);

    // Import custom groups.
    _breakpoint_import_breakpoint_groups($module, Breakpoint::SOURCE_TYPE_MODULE);
  }
}