function _panels_mini_panels_cache_get in Panels 7.3
Same name and namespace in other branches
- 6.3 panels_mini/panels_mini.module \_panels_mini_panels_cache_get()
Get the display cache for the panels_mini plugin.
8 calls to _panels_mini_panels_cache_get()
- hook_panels_cache_clear in ./
panels.api.php - Allow modules to provide their own caching mechanism for the display editor.
- hook_panels_cache_get in ./
panels.api.php - Allow modules to provide their own caching mechanism for the display editor.
- hook_panels_cache_save in ./
panels.api.php - Allow modules to provide their own caching mechanism for the display editor.
- hook_panels_cache_set in ./
panels.api.php - Allow modules to provide their own caching mechanism for the display editor.
- panels_mini_panels_cache_clear in panels_mini/
panels_mini.module - Save all changes made to a display using the panels mini UI cache.
File
- panels_mini/
panels_mini.module, line 482 - panels_mini.module
Code
function _panels_mini_panels_cache_get($key) {
ctools_include('export-ui');
$plugin = ctools_get_export_ui('panels_mini');
$handler = ctools_export_ui_get_handler($plugin);
if (!$handler) {
return;
}
$item = $handler
->edit_cache_get($key);
if (!$item) {
$item = ctools_export_crud_load($handler->plugin['schema'], $key);
}
return array(
$handler,
$item,
);
}