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 display edit cache for the panels mini export UI

The key is the second half of the key in this form: panels_mini:TASK_NAME:HANDLER_NAME;

File

panels_mini/panels_mini.module, line 284
panels_mini.module

Code

function panels_mini_panels_cache_get($key) {
  ctools_include('common', 'panels');
  list($handler, $item) = _panels_mini_panels_cache_get($key);
  if (isset($item->mini_panels_display_cache)) {
    return $item->mini_panels_display_cache;
  }
  $cache = new stdClass();
  $cache->display = $item->display;
  $cache->display->context = ctools_context_load_contexts($item);
  $cache->display->cache_key = 'panels_mini:' . $key;
  $cache->content_types = panels_common_get_allowed_types('panels_mini', $cache->display->context);
  $cache->display_title = TRUE;

  // @TODO support locking
  $cache->locked = FALSE;
  return $cache;
}