function _cache_actions_get_mini_panel_panes in Cache Actions 7.2
Same name and namespace in other branches
- 7 cache_actions.rules.inc \_cache_actions_get_mini_panel_panes()
Get Mini Panel Panes.
Return value
array Mini Panel panels.
1 string reference to '_cache_actions_get_mini_panel_panes'
- cache_actions_rules_action_info in ./
cache_actions.rules.inc - Implements hook_rules_action_info().
File
- ./
cache_actions.rules.inc, line 213 - This file provides the rules integration for this module.
Code
function _cache_actions_get_mini_panel_panes() {
ctools_include('plugins', 'panels');
ctools_include('content');
$available_panes = array();
$mini_panels = panels_mini_load_all();
foreach ($mini_panels as $mini_panel) {
foreach ($mini_panel->display->content as $pane) {
// The panes must have rule-based caching on in order for invalidation
// to work properly.
if (isset($pane->cache['method']) && $pane->cache['method'] == 'rules') {
$pane_title = ctools_content_admin_title($pane->type, $pane->subtype, $pane->configuration, $display->context);
$available_panes[$mini_panel->name][$pane->cache['settings']['cache_key']] = $pane_title;
}
}
}
return $available_panes;
}