function panelizer_panels_cache_save in Panelizer 6
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_panels_cache_save()
- 7 panelizer.module \panelizer_panels_cache_save()
- 7.2 panelizer.module \panelizer_panels_cache_save()
Save all changes made to a display using the Page Manager page cache.
File
- ./
panelizer.module, line 657 - panelizer.module
Code
function panelizer_panels_cache_save($argument, $cache) {
list($type, $key) = explode(':', $argument, 2);
switch ($type) {
case 'default':
$panelizer = panelizer_load_default($key);
$panelizer->display = $cache->display;
ctools_include('export');
ctools_export_crud_save('panelizer_defaults', $panelizer);
break;
case 'node':
ctools_include('node', 'panelizer');
$panelizer = panelizer_load_node_panelizer($key);
$panelizer->display = $cache->display;
panelizer_save_node_panelizer($panelizer);
break;
case 'user':
}
}