Get a list of available breakpoints from a specified module.
string $module: The name of the module.
array An array of breakpoints in the form $breakpoint['name'] = 'media query'.
function breakpoint_get_module_media_queries($module) {
if (!module_exists($module)) {
throw new \Exception('Illegal module name passed.');
}
$config = config($module . '.breakpoints');
if ($config) {
return $config
->get();
}
return array();
}