function panels_context_get_context in Panels 5.2
Same name and namespace in other branches
- 6.2 includes/plugins.inc \panels_context_get_context()
Get a context from a context object.
1 call to panels_context_get_context()
- panels_context_get_contexts in includes/
plugins.inc - Retrieve a list of empty contexts for all contexts
File
- includes/
plugins.inc, line 1134 - plugins.inc
Code
function panels_context_get_context($context, $type = 'context') {
if ($function = panels_plugin_get_function('contexts', $context['name'], 'context')) {
$return = $function($type == 'requiredcontext', $context['context_settings'], TRUE);
if ($return) {
$return->identifier = $context['identifier'];
$return->page_title = $context['title'];
$return->keyword = $context['keyword'];
return $return;
}
}
}