function _breakpoints_breakpoint_load_all_callback in Breakpoints 7
CTools export 'load all callback' CRUD callback for breakpoints.
1 call to _breakpoints_breakpoint_load_all_callback()
- breakpoints_breakpoint_load_by_fullkey in ./
breakpoints.module - Load a single breakpoint using the full config key.
1 string reference to '_breakpoints_breakpoint_load_all_callback'
- breakpoints_schema in ./
breakpoints.install - Implements hook_schema().
File
- ./
breakpoints.module, line 391 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function _breakpoints_breakpoint_load_all_callback($reset = FALSE) {
if (!$reset && ($cache = cache_get('breakpoints:breakpoints'))) {
return $cache->data;
}
else {
ctools_include('export');
$breakpoints = ctools_export_load_object('breakpoints', 'all');
cache_set('breakpoints:breakpoints', $breakpoints);
return $breakpoints;
}
}