function panels_node_get_context in Panels 7.3
Same name and namespace in other branches
- 6.3 panels_node/panels_node.module \panels_node_get_context()
Build the context to use for a panel node.
4 calls to panels_node_get_context()
- panels_node_edit_content in panels_node/
panels_node.module - Pass through to the panels content editor.
- panels_node_edit_layout in panels_node/
panels_node.module - Pass through to the panels layout editor.
- panels_node_hook_view in panels_node/
panels_node.module - Implementation of hook_view().
- panels_node_panels_cache_get in panels_node/
panels_node.module - Get display edit cache for a panel node being edited.
File
- panels_node/
panels_node.module, line 373 - panels_node.module
Code
function panels_node_get_context(&$node) {
ctools_include('context');
$context = ctools_context_create('node', $node);
$context->identifier = t('This node');
$context->keyword = 'node';
return array(
'panel-node' => $context,
);
}