You are here

function breakpoint_modules_enabled in Breakpoints 8

Implements hook_modules_enabled().

Import breakpoints from all new enabled modules.

Parameters

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

1 call to breakpoint_modules_enabled()
breakpoint_enable in ./breakpoint.module
Implements hook_enable().

File

./breakpoint.module, line 61
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);
  }
}