function panels_edit_cache_get_default in Panels 7.3
Same name and namespace in other branches
- 6.3 panels.module \panels_edit_cache_get_default()
Create the default cache for editing panel displays.
If an application is using the Panels display editor without having specified a cache key, this method can be used to create the default cache.
2 calls to panels_edit_cache_get_default()
- panels_renderer_ipe::add_meta in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - Attach out-of-band page metadata (e.g., CSS and JS).
- _panels_edit in includes/
display-edit.inc - Handle calling and processing of the form for editing display content.
File
- ./
panels.module, line 1690 - Core functionality for the Panels engine.
Code
function panels_edit_cache_get_default(&$display, $content_types = NULL, $title = FALSE) {
if (empty($content_types)) {
$content_types = ctools_content_get_available_types();
}
$display->cache_key = $display->did;
panels_cache_clear('display', $display->did);
$cache = new stdClass();
$cache->display =& $display;
$cache->content_types = $content_types;
$cache->display_title = $title;
panels_edit_cache_set($cache);
return $cache;
}