function panelizer_get_contexts in Panelizer 6
Same name and namespace in other branches
- 7 panelizer.module \panelizer_get_contexts()
Fetch an object array from panelizer information.
4 calls to panelizer_get_contexts()
- panelizer_default_layout_page in includes/
admin.inc - Pass through to the panels layout editor.
- panelizer_edit_node_layout_page in includes/
node.inc - Page to edit basic settings on a panelized node.
- panelizer_panels_cache_get in ./
panelizer.module - Get display edit cache for a panel being edited.
- panelizer_render_node in includes/
node.inc - Render the panels display for a given panelizer node.
File
- ./
panelizer.module, line 698 - panelizer.module
Code
function panelizer_get_contexts($panelizer, $object = NULL) {
ctools_include('context');
if (empty($panelizer->base_contexts)) {
$panelizer->base_contexts = panelizer_get_base_context($panelizer->panelizer_type, $object);
}
return ctools_context_load_contexts($panelizer);
}