You are here

function breakpoint_get_module_media_queries in Breakpoints 8

Get a list of available breakpoints from a specified module.

Parameters

string $module: The name of the module.

Return value

array An array of breakpoints in the form $breakpoint['name'] = 'media query'.

1 call to breakpoint_get_module_media_queries()
breakpoint_modules_enabled in ./breakpoint.module
Implements hook_modules_enabled().

File

./breakpoint.module, line 292
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_get_module_media_queries($module) {
  if (!module_exists($module)) {
    return array();
  }
  $config = config($module . '.breakpoints');
  if ($config) {
    return $config
      ->get();
  }
  return array();
}