function panels_context_match_required_contexts in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/plugins.inc \panels_context_match_required_contexts()
Match up external contexts to our required contexts. It shouldn't be possible to get here without the contexts already lining up properly.
1 call to panels_context_match_required_contexts()
- panels_mini_content in panels_mini/
panels_mini.module - Render a mini panel called from a panels display.
File
- includes/
plugins.inc, line 1195 - plugins.inc
Code
function panels_context_match_required_contexts($required, $contexts) {
$return = array();
if (!is_array($required)) {
return $return;
}
foreach ($required as $r) {
$return[panels_context_context_id($r, 'requiredcontext')] = array_shift($contexts);
}
return $return;
}