function panelizer_context_cache_clear in Panelizer 6
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_context_cache_clear()
- 7 panelizer.module \panelizer_context_cache_clear()
- 7.2 panelizer.module \panelizer_context_cache_clear()
Clear 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.
2 calls to panelizer_context_cache_clear()
- panelizer_default_context_page in includes/
admin.inc - Page to configure what content is available for a given node type.
- panelizer_edit_node_context_page in includes/
node.inc - Page to edit basic settings on a panelized node.
File
- ./
panelizer.module, line 572 - panelizer.module
Code
function panelizer_context_cache_clear($type, $key) {
ctools_include('object-cache');
ctools_object_cache_clear('panelizer_context_cache', $type . ':' . $key);
}