function panelizer_context_cache_set in Panelizer 7
Same name and namespace in other branches
- 6 panelizer.module \panelizer_context_cache_set()
- 7.3 panelizer.module \panelizer_context_cache_set()
- 7.2 panelizer.module \panelizer_context_cache_set()
Store the panelizer object in the object cache.
CTools clumsy context editing system requires caching. This lets us do it reasonably.
Parameters
$type: Can be something like 'node' or 'user' or 'default'.
$key: Either the node type or the nid.
$object: The cached object.
1 string reference to 'panelizer_context_cache_set'
- panelizer_context.inc in plugins/
cache/ panelizer_context.inc
File
- ./
panelizer.module, line 547 - panelize.module
Code
function panelizer_context_cache_set($type, $key, $object) {
ctools_include('object-cache');
ctools_object_cache_set('panelizer_context_cache', $type . ':' . $key, $object);
}