function breakpoints_breakpoint_group_load_all in Breakpoints 7
Load all breakpoint groups.
2 calls to breakpoints_breakpoint_group_load_all()
- breakpoints_breakpoint_group_load in ./
breakpoints.module - Load a single breakpoint group.
- breakpoints_menu in ./
breakpoints.module - Implements hook_menu().
2 string references to 'breakpoints_breakpoint_group_load_all'
- breakpoints_breakpoint_group_reset in ./
breakpoints.module - Clears the breakpoint group caches.
- breakpoints_schema in ./
breakpoints.install - Implements hook_schema().
File
- ./
breakpoints.module, line 611 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function breakpoints_breakpoint_group_load_all($reset = FALSE) {
$groups =& drupal_static(__FUNCTION__);
if (!isset($groups)) {
if (!$reset && ($cache = cache_get('breakpoints:groups'))) {
return $cache->data;
}
else {
ctools_include('export');
$groups = ctools_export_load_object('breakpoint_group', 'all');
cache_set('breakpoints:groups', $groups);
}
}
return $groups;
}