You are here

function panels_page_wizard_panels_cache_get in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_page_wizard_panels_cache_get()
  2. 6.3 panels.module \panels_page_wizard_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_page_wizard:TASK_NAME:HANDLER_NAME;

File

./panels.module, line 1924
Core functionality for the Panels engine.

Code

function panels_page_wizard_panels_cache_get($key) {
  ctools_include('page-wizard');
  ctools_include('context');
  $wizard_cache = page_manager_get_wizard_cache($key);
  if (isset($wizard_cache->display_cache)) {
    return $wizard_cache->display_cache;
  }
  ctools_include('common', 'panels');
  $cache = new stdClass();
  $cache->display = $wizard_cache->display;
  $cache->display->context = !empty($wizard_cache->context) ? $wizard_cache->context : array();
  $cache->display->cache_key = 'panels_page_wizard:' . $key;
  $cache->content_types = panels_common_get_allowed_types('panels_page', $cache->display->context);
  $cache->display_title = TRUE;
  return $cache;
}