You are here

function panelizer_context_cache_clear in Panelizer 7.2

Same name and namespace in other branches
  1. 6 panelizer.module \panelizer_context_cache_clear()
  2. 7.3 panelizer.module \panelizer_context_cache_clear()
  3. 7 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

$entity_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()
PanelizerEntityDefault::page_context in plugins/entity/PanelizerEntityDefault.class.php
panelizer_default_context_page in includes/admin.inc
Page to configure what content is available for a given node type.
1 string reference to 'panelizer_context_cache_clear'
panelizer_context.inc in plugins/cache/panelizer_context.inc

File

./panelizer.module, line 826
The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.

Code

function panelizer_context_cache_clear($entity_type, $key) {
  ctools_include('object-cache');
  ctools_object_cache_clear('panelizer_context_cache', $entity_type . ':' . $key);
}