You are here

function _panel_context_panels_cache_get_page_cache in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \_panel_context_panels_cache_get_page_cache()
  2. 6.3 panels.module \_panel_context_panels_cache_get_page_cache()

Get the Page Manager cache for the panel_context plugin.

4 calls to _panel_context_panels_cache_get_page_cache()
panel_context_panels_cache_break_lock in ./panels.module
Break the lock on a page manager page.
panel_context_panels_cache_clear in ./panels.module
Save all changes made to a display using the Page Manager page cache.
panel_context_panels_cache_save in ./panels.module
Save all changes made to a display using the Page Manager page cache.
panel_context_panels_cache_set in ./panels.module
Store a display edit in progress in the page cache.

File

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

Code

function _panel_context_panels_cache_get_page_cache($key, $cache) {
  list($task_name, $handler_name, $args, $q) = explode('::', $key, 4);
  $page = page_manager_get_page_cache($task_name);
  $page->display_cache[$handler_name] = $cache;
  if ($handler_name) {
    $page->handlers[$handler_name]->conf['display'] = $cache->display;
    $page->handler_info[$handler_name]['changed'] |= PAGE_MANAGER_CHANGED_CACHED;
  }
  else {
    $page->new_handler->conf['display'] = $cache->display;
  }
  return $page;
}