function panels_context_get_contexts in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_context_get_contexts()
Retrieve a list of empty contexts for all contexts
1 call to panels_context_get_contexts()
- panels_context_load_contexts in includes/
plugins.inc - Get a group of empty contexts for the object; this assumes all the standard context types, and doesn't punish you if they aren't available.
File
- includes/
plugins.inc, line 1163 - plugins.inc
Code
function panels_context_get_contexts($contexts, $type = 'context') {
$return = array();
foreach ($contexts as $context) {
$ctext = panels_context_get_context($context, $type);
if ($ctext) {
$return[panels_context_id($context, $type)] = $ctext;
}
}
return $return;
}