function panels_get_cached_content in Panels 5.2
Same name and namespace in other branches
- 6.3 includes/plugins.inc \panels_get_cached_content()
- 6.2 includes/plugins.inc \panels_get_cached_content()
- 7.3 includes/plugins.inc \panels_get_cached_content()
Get cached content for a given display and possibly pane.
Return value
The cached content, or FALSE to indicate no cached content exists.
2 calls to panels_get_cached_content()
- panels_get_pane_content in includes/
plugins.inc - Get the content from a given pane.
- panels_render_layout in ./
panels.module - Given a full layout structure and a content array, render a panel display.
File
- includes/
plugins.inc, line 559 - plugins.inc
Code
function panels_get_cached_content($display, $args, $context, $pane = NULL) {
$method = $pane ? $pane->cache['method'] : $display->cache['method'];
$function = panels_plugin_get_function('cache', $method, 'cache get');
if (!$function) {
return FALSE;
}
$conf = $pane ? $pane->cache['settings'] : $display->cache['settings'];
$cache = $function($conf, $display, $args, $context, $pane);
if (empty($cache)) {
return FALSE;
}
// restore it.
$cache
->restore();
return $cache;
}