function _breakpoints_breakpoint_load_all_by_type in Breakpoints 7
Load all breakpoints by source type.
3 calls to _breakpoints_breakpoint_load_all_by_type()
- breakpoints_breakpoint_load_all_custom in ./
breakpoints.module - Load all custom breakpoints.
- breakpoints_breakpoint_load_all_module in ./
breakpoints.module - Load all user defined breakpoints.
- breakpoints_breakpoint_load_all_theme in ./
breakpoints.module - Load all breakpoints from the theme.
File
- ./
breakpoints.module, line 434 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function _breakpoints_breakpoint_load_all_by_type($source_type, $source = '') {
$breakpoints = breakpoints_breakpoint_load_by_fullkey();
foreach ($breakpoints as $machine_name => $breakpoint) {
if ($breakpoint->source_type != $source_type) {
unset($breakpoints[$machine_name]);
continue;
}
if ($source != '' && $breakpoint->source != $source) {
unset($breakpoints[$machine_name]);
}
}
return $breakpoints;
}