function breakpoints_breakpoint_load_all in Breakpoints 7
Load all breakpoints.
5 calls to breakpoints_breakpoint_load_all()
- BreakpointMultipliersTestCase::testBreakpointMultipliers in ./
breakpoints.test - Test breakpoints multipliers functionality.
- breakpoints_admin_breakpoints in ./
breakpoints.admin.inc - Admin form
- breakpoints_admin_breakpoint_group_edit_form in ./
breakpoints.admin.inc - breakpoints_breakpoint_load_all_active in ./
breakpoints.module - Load all enabled breakpoints.
- breakpoints_update_7102 in ./
breakpoints.install - Add the '1x' multiplier to all breakpoints.
File
- ./
breakpoints.module, line 406 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_load_all($theme_key = '') {
$breakpoints_user = breakpoints_breakpoint_load_all_custom();
$breakpoints_module = breakpoints_breakpoint_load_all_module();
$breakpoints_theme = breakpoints_breakpoint_load_all_theme($theme_key);
$breakpoints = array_merge($breakpoints_theme, $breakpoints_module, $breakpoints_user);
uasort($breakpoints, '_breakpoints_sort_by_weight');
return $breakpoints;
}