You are here

function hook_panels_cache_save in Panels 7.3

Allow modules to provide their own caching mechanism for the display editor.

Parameters

string $argument: The second half of the cache key. Full key module:TASK_NAME:HANDLER_NAME passed part: TASK_NAME:HANDLER_NAME

object $cache: The display to cache.

Return value

stdClass The cached display.

3 functions implement hook_panels_cache_save()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

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_node_panels_cache_save in panels_node/panels_node.module
React to a cache save and save the display and clear cache.
panel_context_panels_cache_save in ./panels.module
Save all changes made to a display using the Page Manager page cache.
1 invocation of hook_panels_cache_save()
panels_edit_cache_save in ./panels.module
Panels Editor Cache Save.

File

./panels.api.php, line 65
Hooks provided by Panels.

Code

function hook_panels_cache_save($argument, $cache) {
  list($handler, $item) = _panels_mini_panels_cache_get($argument);
  $item->display = $cache->display;
  panels_mini_save($item);
  $handler
    ->edit_cache_clear($item);
  return $item;
}