function panelizer_ctools_access_clear in Panelizer 7.2
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_ctools_access_clear()
Implement CTools access form caching callback: get.
File
- ./
panelizer.module, line 310 - The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.
Code
function panelizer_ctools_access_clear($argument) {
list($entity_type, $bundle, $name) = explode(':', $argument);
$handler = panelizer_entity_plugin_get_handler($entity_type);
$panelizer = $handler
->get_default_panelizer_object($bundle, $name);
if (empty($panelizer)) {
return;
}
if (!$handler
->access_default_panelizer_object($panelizer)) {
return;
}
ctools_include('object-cache');
ctools_object_cache_clear('panelizer', $argument);
}