You are here

function panels_node_get_context in Panels 6.3

Same name and namespace in other branches
  1. 7.3 panels_node/panels_node.module \panels_node_get_context()

Build the context to use for a panel node.

3 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_view in panels_node/panels_node.module
Implementation of hook_view().

File

panels_node/panels_node.module, line 372
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,
  );
}