You are here

function _panels_mini_panels_cache_get in Panels 6.3

Same name and namespace in other branches
  1. 7.3 panels_mini/panels_mini.module \_panels_mini_panels_cache_get()

Get the display cache for the panels_mini plugin.

4 calls to _panels_mini_panels_cache_get()
panels_mini_panels_cache_clear in panels_mini/panels_mini.module
Save all changes made to a display using the panels mini UI cache.
panels_mini_panels_cache_get in panels_mini/panels_mini.module
Get display edit cache for the panels mini export UI
panels_mini_panels_cache_save in panels_mini/panels_mini.module
Save all changes made to a display using the panels mini UI cache.
panels_mini_panels_cache_set in panels_mini/panels_mini.module
Store a display edit in progress in the page cache.

File

panels_mini/panels_mini.module, line 262
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,
  );
}