function _cache_actions_get_mini_panel_panes in Cache Actions 7
Same name and namespace in other branches
- 7.2 cache_actions.rules.inc \_cache_actions_get_mini_panel_panes()
1 string reference to '_cache_actions_get_mini_panel_panes'
- cache_actions_rules_action_info in ./
cache_actions.rules.inc - Implementation of hook_rules_action_info().
File
- ./
cache_actions.rules.inc, line 293 - This file provides the rules integration for this module.
Code
function _cache_actions_get_mini_panel_panes() {
ctools_include('plugins', 'panels');
$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 ($pane->cache['method'] == 'rules') {
$pane_title = panels_get_pane_title($pane);
$available_panes[$mini_panel->name][$pane->pid] = $pane_title;
}
}
}
return $available_panes;
}