function _cache_actions_clear_pane_cache in Cache Actions 7
Same name and namespace in other branches
- 6.2 cache_actions.rules.inc \_cache_actions_clear_pane_cache()
Clear the content of a pane.
Parameters
$pane the pane to clear:
$display the display it belongs to.:
2 calls to _cache_actions_clear_pane_cache()
- cache_actions_action_clear_panels_mini_pane_cache in ./
cache_actions.rules.inc - cache_actions_action_clear_panels_pane_cache in ./
cache_actions.rules.inc - Clear the cache of panes in a mini panel.
File
- ./
cache_actions.rules.inc, line 498 - This file provides the rules integration for this module.
Code
function _cache_actions_clear_pane_cache($pane, $display) {
// Clearing panes can't be used with any other plugin than the rules plugin.
if ($pane->cache['method'] == 'rules') {
$function = panels_plugin_get_function('cache', $pane->cache['method'], 'cache clear');
// Specify the pane to clear. This is specific for the rules plugin.
$display->clear_pane = $pane;
if ($function) {
$function($display);
}
}
}